i965/fs: Handle SAMPLEINFO consistently like other texturing instructions.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 20 May 2016 07:37:37 +0000 (00:37 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:19:21 +0000 (23:19 -0700)
commita8e7b4f1d9ec50d2214e7694da26af6a108e506f
tree44278650f9b4914eaf17abb86a64b27e7ee78960
parent99b5476d33f967ac2a30c3f8f7f958a7169e7123
i965/fs: Handle SAMPLEINFO consistently like other texturing instructions.

Seems like this texturing opcode was missing its logical counterpart
which would prevent it from taking advantage of the SIMD lowering
infrastructure, define it and plumb it through the back-end.  At some
point we'll likely want to emit a single SAMPLEINFO message shared
among all channels irrespective of this change, but for the moment
this should be enough to get the intrinsic working in SIMD32 mode.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp