i965/fs: Add a MAX_GRF_SIZE define and use it various places
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Oct 2014 17:54:59 +0000 (10:54 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Oct 2014 21:14:25 +0000 (14:14 -0700)
commit50d0e2e118fb3e42dc83c83de34da3eac0a0d8a1
tree66b4d209fbc1acef32fed0e5e45b273c7e4240ef
parentb33e5465a7b62cfa05a29f163659ca60d30fe6c9
i965/fs: Add a MAX_GRF_SIZE define and use it various places

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.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84539
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp