const struct brw_tracked_state gen8_blend_state = {
.dirty = {
- .mesa = _NEW_COLOR | _NEW_BUFFERS | _NEW_MULTISAMPLE,
- .brw = BRW_NEW_BATCH | BRW_NEW_STATE_BASE_ADDRESS,
- .cache = 0,
+ .mesa = _NEW_BUFFERS |
+ _NEW_COLOR |
+ _NEW_MULTISAMPLE,
+ .brw = BRW_NEW_BATCH |
+ BRW_NEW_STATE_BASE_ADDRESS,
},
.emit = gen8_upload_blend_state,
};
/* _NEW_BUFFERS */
struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0];
+ /* BRW_NEW_FRAGMENT_PROGRAM | _NEW_BUFFERS | _NEW_COLOR */
if (brw_color_buffer_write_enabled(brw))
dw1 |= GEN8_PS_BLEND_HAS_WRITEABLE_RT;
const struct brw_tracked_state gen8_ps_blend = {
.dirty = {
- .mesa = _NEW_BUFFERS | _NEW_COLOR | _NEW_MULTISAMPLE,
- .brw = BRW_NEW_CONTEXT,
- .cache = 0,
+ .mesa = _NEW_BUFFERS |
+ _NEW_COLOR |
+ _NEW_MULTISAMPLE,
+ .brw = BRW_NEW_CONTEXT |
+ BRW_NEW_FRAGMENT_PROGRAM,
},
.emit = gen8_upload_ps_blend
};