i965/skl: Fix the order of the arguments for the LD sampler message
authorNeil Roberts <neil@linux.intel.com>
Fri, 6 Mar 2015 19:11:19 +0000 (19:11 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 8 Apr 2015 11:08:41 +0000 (12:08 +0100)
commit4deca1274c25b80351dbec972b68ab6520a89b31
treeec4dead31eef8244cd305f0d85f9e7ebc65a599c
parenteb51c6d55ff8b91497bd81f48f95e6bbe863a3e0
i965/skl: Fix the order of the arguments for the LD sampler message

In Skylake the order of the arguments for sample messages with the LD
type are u, v, lod, r whereas previously they were u, lod, v, r.

This fixes 144 Piglit tests including ones that directly use
texelFetch and also some using the meta stencil blit path which
appears to use texelFetch in its shader.

v2: Fix sampling 1D textures

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp