aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2018-03-28 17:53:13 -0700
committerNanley Chery <[email protected]>2018-04-09 10:56:48 -0700
commit1ce7ae391e8a41b2ee4dab568cd77faa072a0fe2 (patch)
tree002e062c74ae78b7d2cb93e65fad6305f23e8b74 /src/mesa/drivers/dri/i965/intel_mipmap_tree.h
parentc63bef15fc6f55ad9d5aa82076b94108f6b54236 (diff)
i965: Use the brw_context for the clear color and value setters
Do what all the other functions in the miptree API do. Reviewed-by: Topi Pohjolainen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
index 54d36400757..df9b76892ac 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
@@ -733,26 +733,26 @@ intel_miptree_sample_with_hiz(struct brw_context *brw,
static inline bool
-intel_miptree_set_clear_color(struct gl_context *ctx,
+intel_miptree_set_clear_color(struct brw_context *brw,
struct intel_mipmap_tree *mt,
union isl_color_value clear_color)
{
if (memcmp(&mt->fast_clear_color, &clear_color, sizeof(clear_color)) != 0) {
mt->fast_clear_color = clear_color;
- ctx->NewDriverState |= BRW_NEW_AUX_STATE;
+ brw->ctx.NewDriverState |= BRW_NEW_AUX_STATE;
return true;
}
return false;
}
static inline bool
-intel_miptree_set_depth_clear_value(struct gl_context *ctx,
+intel_miptree_set_depth_clear_value(struct brw_context *brw,
struct intel_mipmap_tree *mt,
float clear_value)
{
if (mt->fast_clear_color.f32[0] != clear_value) {
mt->fast_clear_color.f32[0] = clear_value;
- ctx->NewDriverState |= BRW_NEW_AUX_STATE;
+ brw->ctx.NewDriverState |= BRW_NEW_AUX_STATE;
return true;
}
return false;