i965: Move intel_context::stats_wm to brw_context.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Chris Forbes <chrisf@ijw.co.nz> Acked-by: Paul Berry <stereotype441@gmail.com> Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -96,7 +96,6 @@ brw_fix_xRGB_alpha(GLenum function)
|
||||
*/
|
||||
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;
|
||||
|
||||
@@ -211,7 +210,7 @@ static void upload_cc_unit(struct brw_context *brw)
|
||||
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 */
|
||||
|
||||
@@ -833,6 +833,8 @@ struct brw_context
|
||||
*/
|
||||
bool is_front_buffer_reading;
|
||||
|
||||
GLuint stats_wm;
|
||||
|
||||
/**
|
||||
* drirc options:
|
||||
* @{
|
||||
|
||||
@@ -296,7 +296,7 @@ brw_begin_query(struct gl_context *ctx, struct gl_query_object *q)
|
||||
* 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;
|
||||
|
||||
@@ -355,7 +355,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
|
||||
|
||||
brw->query.obj = NULL;
|
||||
|
||||
intel->stats_wm--;
|
||||
brw->stats_wm--;
|
||||
brw->state.dirty.brw |= BRW_NEW_STATS_WM;
|
||||
break;
|
||||
|
||||
|
||||
@@ -420,7 +420,7 @@ static void brw_wm_populate_key( struct brw_context *brw,
|
||||
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);
|
||||
|
||||
@@ -204,7 +204,7 @@ brw_upload_wm_unit(struct brw_context *brw)
|
||||
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 */
|
||||
|
||||
@@ -150,8 +150,6 @@ struct intel_context
|
||||
|
||||
uint32_t max_gtt_map_object_size;
|
||||
|
||||
GLuint stats_wm;
|
||||
|
||||
int driFd;
|
||||
|
||||
__DRIcontext *driContext;
|
||||
|
||||
Reference in New Issue
Block a user