diff options
author | Matt Turner <[email protected]> | 2013-12-10 16:22:56 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-01-21 14:09:33 -0800 |
commit | 2dfb0671395c383caf360a5690756f77afef6663 (patch) | |
tree | 09c2782ee5affb763351c1bd4b546e9a2cf8b0e8 /src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | |
parent | 81d52419cfaf143d9f157a2eff148a940a05ca69 (diff) |
i965/fs: Add and use MAX_SAMPLER_MESSAGE_SIZE definition.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index f54a2defd44..2494b117e57 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -103,7 +103,8 @@ brw_alloc_reg_set(struct brw_context *brw, int reg_width) int class_sizes[BRW_MAX_MRF]; if (brw->gen >= 7) { - for (class_count = 0; class_count < 11; class_count++) + for (class_count = 0; class_count < MAX_SAMPLER_MESSAGE_SIZE; + class_count++) class_sizes[class_count] = class_count + 1; } else { for (class_count = 0; class_count < 4; class_count++) |