i965/fs: Add a MAX_GRF_SIZE define and use it various places

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 2 October 2014 16:14 UTC

Previously, we had a MAX_SAMPLER_MESSAGE_SIZE which we used instead. However, some FB write messages can validly be longer than this so we need something different. Since MAX_SAMPLER_MESSAGE_SIZE is validly useful on its own, we leave it alone and add a new MAX_GRF_SIZE that's big enough for FB writes.

50d0e2e i965/fs: Add a MAX_GRF_SIZE define and use it various places
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 ++
src/mesa/drivers/dri/i965/brw_fs.h | 1 +
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 +-
.../drivers/dri/i965/brw_fs_register_coalesce.cpp | 10 +++++-----
4 files changed, 9 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share