[Mesa-dev] [PATCH 6/6] i965/tex: Use blorp texture upload for all CCS_E textures

Kenneth Graunke kenneth at whitecape.org
Tue Oct 10 22:14:19 UTC 2017


From: Jason Ekstrand <jason.ekstrand at intel.com>

This improves the FillTex benchmark in GLBench 2.7 by 30% on my Broxton.
On Ken's Broxton which only has single-channel ram, it improves by 210%.

v2 (Ken): Check mt->aux_usage == ISL_AUX_USAGE_CCS_E rather than using
          intel_miptree_is_lossless_compressed().
---
 src/mesa/drivers/dri/i965/intel_tex_image.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index 9ae27c70280..ab3a4fb0615 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_image.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
@@ -329,7 +329,8 @@ intel_upload_tex(struct gl_context * ctx,
    if (mt && mt->format == MESA_FORMAT_S_UINT8)
       mt->r8stencil_needs_update = true;
 
-   if (_mesa_is_bufferobj(packing->BufferObj) || tex_busy) {
+   if (_mesa_is_bufferobj(packing->BufferObj) || tex_busy ||
+       mt->aux_usage == ISL_AUX_USAGE_CCS_E) {
       ok = intel_texsubimage_blorp(brw, dims, texImage,
                                    xoffset, yoffset, zoffset,
                                    width, height, depth, format, type,
-- 
2.14.2



More information about the mesa-dev mailing list