From f748e157352bba0b46db52b5f2e21e68e04391d0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sun, 24 Jul 2016 01:08:14 -0700 Subject: i965/blorp: Stop calling brw_meta_get_buffer_rect We already have an inlined version of the function slightly higher up in do_single_blorp_clear and all calling it does is stomp the values with the same thing. We might as well just get rid of it. Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 3 --- src/mesa/drivers/dri/i965/brw_meta_util.c | 16 ---------------- src/mesa/drivers/dri/i965/brw_meta_util.h | 5 ----- 3 files changed, 24 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index bffbec5e35c..26daa3d09ae 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -174,9 +174,6 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, brw_get_fast_clear_rect(brw, fb, irb->mt, ¶ms.x0, ¶ms.y0, ¶ms.x1, ¶ms.y1); - } else { - brw_meta_get_buffer_rect(fb, ¶ms.x0, ¶ms.y0, - ¶ms.x1, ¶ms.y1); } brw_blorp_params_get_clear_kernel(brw, ¶ms, use_simd16_replicated_data); diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.c b/src/mesa/drivers/dri/i965/brw_meta_util.c index a81190d98bf..59c9af818b4 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_util.c +++ b/src/mesa/drivers/dri/i965/brw_meta_util.c @@ -568,22 +568,6 @@ brw_get_fast_clear_rect(const struct brw_context *brw, *y1 = ALIGN(*y1, y_align) / y_scaledown; } -void -brw_meta_get_buffer_rect(const struct gl_framebuffer *fb, - unsigned *x0, unsigned *y0, - unsigned *x1, unsigned *y1) -{ - *x0 = fb->_Xmin; - *x1 = fb->_Xmax; - if (fb->Name != 0) { - *y0 = fb->_Ymin; - *y1 = fb->_Ymax; - } else { - *y0 = fb->Height - fb->_Ymax; - *y1 = fb->Height - fb->_Ymin; - } -} - void brw_get_ccs_resolve_rect(const struct isl_device *dev, const struct isl_surf *ccs_surf, diff --git a/src/mesa/drivers/dri/i965/brw_meta_util.h b/src/mesa/drivers/dri/i965/brw_meta_util.h index 7d4e5f6d9e4..198ffe58129 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_util.h +++ b/src/mesa/drivers/dri/i965/brw_meta_util.h @@ -55,11 +55,6 @@ brw_get_ccs_resolve_rect(const struct isl_device *dev, unsigned *x0, unsigned *y0, unsigned *x1, unsigned *y1); -void -brw_meta_get_buffer_rect(const struct gl_framebuffer *fb, - unsigned *x0, unsigned *y0, - unsigned *x1, unsigned *y1); - bool brw_meta_set_fast_clear_color(struct brw_context *brw, struct intel_mipmap_tree *mt, -- cgit v1.2.3