aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_blend.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-08-24 23:45:27 -0700
committerKenneth Graunke <[email protected]>2018-08-29 10:51:11 -0700
commit8fb966688bc1053a48e8ee7f7394ce030bcfd345 (patch)
tree29a447bf3cc05f9dcadfa1cbf9a2ef408a5456c9 /src/mesa/state_tracker/st_atom_blend.c
parent18e9b4791b0395e67e5ef1e622ac66515ae8baf9 (diff)
st/mesa: Disable blending for integer formats.
Blending isn't valid for integer formats. Rather than having drivers worry about this, just disable blending in this case. This hopefully will increase hits in the CSO cache as well, by eliminating most of the meaningless fields in this case. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_blend.c')
-rw-r--r--src/mesa/state_tracker/st_atom_blend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c
index 57400e2e791..804de2f154f 100644
--- a/src/mesa/state_tracker/st_atom_blend.c
+++ b/src/mesa/state_tracker/st_atom_blend.c
@@ -171,6 +171,7 @@ st_update_blend( struct st_context *st )
/* blending enabled */
for (i = 0, j = 0; i < num_state; i++) {
if (!(ctx->Color.BlendEnabled & (1 << i)) ||
+ (ctx->DrawBuffer->_IntegerBuffers & (1 << i)) ||
!blend->rt[i].colormask)
continue;