nvc0/ir: move sample id to second source arg to fix sampler2DMS
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 20 Mar 2014 21:37:00 +0000 (17:37 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 21 Mar 2014 00:47:47 +0000 (20:47 -0400)
commit19ba573a57ff6125a26ff9ae94cf43c36129645f
tree88fa7355330e5b7806625ccb1853dd6489829f71
parente5f6b6d0feb9b9ad7132d5f236959ef088237347
nvc0/ir: move sample id to second source arg to fix sampler2DMS

The nvc0 texfetch instruction expects the sample id to be in the second
source (usually used for the offset) rather than as part of the texture
coordinate.

This fixes all the sampler2DMS/Array tests on nvc0.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp