diff options
author | Jason Ekstrand <[email protected]> | 2016-08-19 00:37:38 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-29 12:17:34 -0700 |
commit | a818a322440d667a5c143647d070fbc06eb7c328 (patch) | |
tree | 8a3e19167c7e5e8acedf2e81403eed5efedbd049 /src/mesa/drivers/dri/i965 | |
parent | bc159ff0f7364970dbcb4c73d47c57ddb1aa8303 (diff) |
i965/meta_util: Take an isl_device in get_fast_clear_rect
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/blorp_clear.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_util.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_util.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/blorp_clear.c b/src/mesa/drivers/dri/i965/blorp_clear.c index afb54756385..73b55bd0920 100644 --- a/src/mesa/drivers/dri/i965/blorp_clear.c +++ b/src/mesa/drivers/dri/i965/blorp_clear.c @@ -110,8 +110,8 @@ blorp_fast_clear(struct brw_context *brw, const struct brw_blorp_surf *surf, memset(¶ms.wm_inputs, 0xff, 4*sizeof(float)); params.fast_clear_op = GEN7_PS_RENDER_TARGET_FAST_CLEAR_ENABLE; - brw_get_fast_clear_rect(brw, surf->aux_surf, ¶ms.x0, ¶ms.y0, - ¶ms.x1, ¶ms.y1); + brw_get_fast_clear_rect(&brw->isl_dev, surf->aux_surf, + ¶ms.x0, ¶ms.y0, ¶ms.x1, ¶ms.y1); brw_blorp_params_get_clear_kernel(brw, ¶ms, true); diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.c b/src/mesa/drivers/dri/i965/brw_meta_util.c index 90f03452315..bc3a62d6319 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_util.c +++ b/src/mesa/drivers/dri/i965/brw_meta_util.c @@ -446,7 +446,7 @@ brw_meta_set_fast_clear_color(struct brw_context *brw, * area of the framebuffer to be cleared. */ void -brw_get_fast_clear_rect(const struct brw_context *brw, +brw_get_fast_clear_rect(const struct isl_device *dev, const struct isl_surf *aux_surf, unsigned *x0, unsigned *y0, unsigned *x1, unsigned *y1) @@ -479,7 +479,7 @@ brw_get_fast_clear_rect(const struct brw_context *brw, /* SKL+ line alignment requirement for Y-tiled are half those of the prior * generations. */ - if (brw->gen >= 9) + if (dev->info->gen >= 9) y_align *= 16; else y_align *= 32; diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.h b/src/mesa/drivers/dri/i965/brw_meta_util.h index 861392142ba..79a777f991b 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_util.h +++ b/src/mesa/drivers/dri/i965/brw_meta_util.h @@ -43,7 +43,7 @@ brw_meta_mirror_clip_and_scissor(const struct gl_context *ctx, bool *mirror_x, bool *mirror_y); void -brw_get_fast_clear_rect(const struct brw_context *brw, +brw_get_fast_clear_rect(const struct isl_device *dev, const struct isl_surf *aux_surf, unsigned *x0, unsigned *y0, unsigned *x1, unsigned *y1); |