i965/fs: Properly report regs_written from SAMPLEINFO
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Oct 2015 01:07:23 +0000 (18:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Apr 2016 02:55:04 +0000 (19:55 -0700)
commitc7a09c057162ed0b7e9e039470c76bb79518876c
tree6dd95200538e03e5fe96b2afd80fe50f994527f7
parent30b37e4e9b619ddec258c602223f7c6af98062d9
i965/fs: Properly report regs_written from SAMPLEINFO

The previous behavior would only allocate one register and then write
four thus potentially stomping three innocent bystanders.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp