[Mesa-dev] [PATCH 19/31] i965/meta_util: Take an isl_device in get_fast_clear_rect
Jason Ekstrand
jason at jlekstrand.net
Fri Aug 19 16:55:56 UTC 2016
---
src/mesa/drivers/dri/i965/blorp_clear.c | 4 ++--
src/mesa/drivers/dri/i965/brw_meta_util.c | 4 ++--
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 3b6d6d7..14672de 100644
--- a/src/mesa/drivers/dri/i965/blorp_clear.c
+++ b/src/mesa/drivers/dri/i965/blorp_clear.c
@@ -102,8 +102,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 90f0345..bc3a62d 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 8613921..79a777f 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);
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list