i965/fs/nir: fix the number of register written by FS_OPCODE_GET_BUFFER_SIZE
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 Nov 2015 12:45:21 +0000 (13:45 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 12 Nov 2015 07:39:14 +0000 (08:39 +0100)
commitd4fdb84f80dd3dbad2b71ea6e877f24dc625aa2a
treed2dc82a3c4703cf798054c7cc7927f434f84ff1b
parent55314c5be4cbf933ab7fbd20f6aa49207e04c946
i965/fs/nir: fix the number of register written by FS_OPCODE_GET_BUFFER_SIZE

FS_OPCODE_GET_BUFFER_SIZE is calculated with a resinfo's sampler message.

This patch adjusts the number of registers written by the opcode
following what the PRM spec says about the number of registers written
by the SIMD8 and SIMD16's writeback messages for sampler messages.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp