i965/skl: Send a message header when doing constant loads SIMD4x2
authorNeil Roberts <neil@linux.intel.com>
Thu, 12 Mar 2015 17:41:07 +0000 (17:41 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 17 Mar 2015 16:32:11 +0000 (16:32 +0000)
commit5a06ee7384934f8b5177b2f01bb7dff08b370145
tree762f17531f37c0f15ab2c8a2768c1663ba0becf2
parent627c68308683abbd6e563a09af6013a33938a790
i965/skl: Send a message header when doing constant loads SIMD4x2

Commit 0ac4c272755c7 made it add a header for the send message when
using SIMD4x2 on Skylake because without this it will end up using
SIMD8D. However the patch missed the case when a sampler is being used
to implement constant loads from a buffer surface in a SIMD4x2 vertex
shader.

This fixes 29 Piglit tests, mostly related to the ARL instruction in
vertex programs.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Tested-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp