*/
static void upload_cc_unit(struct brw_context *brw)
{
- struct intel_context *intel = &brw->intel;
struct gl_context *ctx = &brw->intel.ctx;
struct brw_cc_unit_state *cc;
cc->cc2.depth_write_enable = ctx->Depth.Mask;
}
- if (intel->stats_wm || unlikely(INTEL_DEBUG & DEBUG_STATS))
+ if (brw->stats_wm || unlikely(INTEL_DEBUG & DEBUG_STATS))
cc->cc5.statistics_enable = 1;
/* CACHE_NEW_CC_VP */
*/
bool is_front_buffer_reading;
+ GLuint stats_wm;
+
/**
* drirc options:
* @{
* avoid them when necessary. They're required for occlusion queries,
* so turn them on now.
*/
- intel->stats_wm++;
+ brw->stats_wm++;
brw->state.dirty.brw |= BRW_NEW_STATS_WM;
break;
brw->query.obj = NULL;
- intel->stats_wm--;
+ brw->stats_wm--;
brw->state.dirty.brw |= BRW_NEW_STATS_WM;
break;
key->line_aa = line_aa;
if (intel->gen < 6)
- key->stats_wm = brw->intel.stats_wm;
+ key->stats_wm = brw->stats_wm;
/* _NEW_LIGHT */
key->flat_shade = (ctx->Light.ShadeModel == GL_FLAT);
wm->wm5.line_stipple = ctx->Line.StippleFlag;
/* BRW_NEW_STATS_WM */
- if (unlikely(INTEL_DEBUG & DEBUG_STATS) || intel->stats_wm)
+ if (unlikely(INTEL_DEBUG & DEBUG_STATS) || brw->stats_wm)
wm->wm4.stats_enable = 1;
/* Emit scratch space relocation */
uint32_t max_gtt_map_object_size;
- GLuint stats_wm;
-
int driFd;
__DRIcontext *driContext;