i965/fs: Do not mark used surfaces in FS_OPCODE_GET_BUFFER_SIZE
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 30 Oct 2015 10:10:02 +0000 (11:10 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 5 Nov 2015 15:11:52 +0000 (16:11 +0100)
commiteea3c907cc480a105224b21be51d62bc64ea1057
tree97b4e8488a2c54b64ef051d32b260f4640540af3
parenteca4c43a33c5c1bb63c8aa9d0506ed2ba3f9d8cb
i965/fs: Do not mark used surfaces in FS_OPCODE_GET_BUFFER_SIZE

Do it in the visitor, like we do for other opcodes.

v2: use const, get rid of useless surf_index temporary (Curro)

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp