diff options
author | Eric Anholt <eric@anholt.net> | 2010-05-23 13:35:50 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-15 15:53:02 -0700 |
commit | 3e9f4d19f6173bd5a752c6ecdc9cee20fb43cbfc (patch) | |
tree | 836c01f37d44389c372348304a1243fc916bd476 | |
parent | 37a8fa74c3dcb23ff61663e806d1a540e8ab52f1 (diff) |
i965: Fix bit allocation for number of color regions for ARB_draw_buffers.
If you used all 4 color targets we currently support, we would see 0
and end up just writing the first output. Give enough bits that we
can do the maximum of 16.
Fixes piglit fbo-drawbuffers-maxtargets.
(cherry picked from commit 08b42bc97d77ff1ea7eefe4ec57997b80fb9b458)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index 47b764d24d1..ddd1f909c3b 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -67,7 +67,7 @@ struct brw_wm_prog_key { GLuint flat_shade:1; GLuint linear_color:1; /**< linear interpolation vs perspective interp */ GLuint runtime_check_aads_emit:1; - GLuint nr_color_regions:2; + GLuint nr_color_regions:5; GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */ GLuint shadowtex_mask:16; |