i965: Rename brw_format_for_mesa_format() to brw_isl_format_for_mesa_format()
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 3 Mar 2017 22:39:52 +0000 (14:39 -0800)
committerAnuj Phogat <anuj.phogat@intel.com>
Thu, 9 Mar 2017 17:47:30 +0000 (09:47 -0800)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_meta_util.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 9f7ba3dd5a1f7029922518d6e5af7d0a018c24df..fdc9dd13cc1cc172eaa7b52af2cfcb83e34929ee 100644 (file)
@@ -294,7 +294,7 @@ brw_blorp_to_isl_format(struct brw_context *brw, mesa_format format,
          assert(brw->format_supported_as_render_target[format]);
          return brw->render_target_format[format];
       } else {
-         return brw_format_for_mesa_format(format);
+         return brw_isl_format_for_mesa_format(format);
       }
       break;
    }
index c8e7cc16809714a25309f6a21a80a8bad310e182..0e882cac84c8f81aa17e9ba73a4f79096416c56d 100644 (file)
@@ -205,7 +205,7 @@ intel_texture_view_requires_resolve(struct brw_context *brw,
        !intel_miptree_is_lossless_compressed(brw, intel_tex->mt))
      return false;
 
-   const uint32_t brw_format = brw_format_for_mesa_format(intel_tex->_Format);
+   const uint32_t brw_format = brw_isl_format_for_mesa_format(intel_tex->_Format);
 
    if (isl_format_supports_ccs_e(&brw->screen->devinfo, brw_format))
       return false;
index 07a160fc4037ba5ba1181a6e16b9996ea0fe55f8..cbc2dedde83fb91eaac9a90454b387df53621500 100644 (file)
@@ -288,7 +288,7 @@ brw_is_color_fast_clear_compatible(struct brw_context *brw,
     * this case. At least on Gen9 this really does seem to cause problems.
     */
    if (brw->gen >= 9 &&
-       brw_format_for_mesa_format(mt->format) !=
+       brw_isl_format_for_mesa_format(mt->format) !=
        brw->render_target_format[mt->format])
       return false;
 
index ecafa84f9fc1fdad14121e161f49cdcc41c5a0f1..65e64a570c0cce0676d5e2bb7e3225d074fde9bb 100644 (file)
@@ -266,7 +266,7 @@ void gen4_init_vtable_surface_functions(struct brw_context *brw);
 uint32_t brw_get_surface_tiling_bits(uint32_t tiling);
 uint32_t brw_get_surface_num_multisamples(unsigned num_samples);
 
-uint32_t brw_format_for_mesa_format(mesa_format mesa_format);
+uint32_t brw_isl_format_for_mesa_format(mesa_format mesa_format);
 
 GLuint translate_tex_target(GLenum target);
 
index 706818d70bb413f708eb19db40545af4c2e6ed65..7b17e1112527c4ad371113f0cb7ba274860bd752 100644 (file)
@@ -29,7 +29,7 @@
 #include "brw_defines.h"
 
 uint32_t
-brw_format_for_mesa_format(mesa_format mesa_format)
+brw_isl_format_for_mesa_format(mesa_format mesa_format)
 {
    /* This table is ordered according to the enum ordering in formats.h.  We do
     * expect that enum to be extended without our explicit initialization
@@ -303,7 +303,7 @@ brw_init_surface_formats(struct brw_context *brw)
       uint32_t texture, render;
       bool is_integer = _mesa_is_format_integer_color(format);
 
-      render = texture = brw_format_for_mesa_format(format);
+      render = texture = brw_isl_format_for_mesa_format(format);
 
       /* The value of ISL_FORMAT_R32G32B32A32_FLOAT is 0, so don't skip
        * it.
@@ -536,7 +536,7 @@ translate_tex_format(struct brw_context *brw,
       return ISL_FORMAT_R32_FLOAT_X8X24_TYPELESS;
 
    case MESA_FORMAT_RGBA_FLOAT32:
-      /* The value of this BRW_SURFACEFORMAT is 0, which tricks the
+      /* The value of this ISL surface format is 0, which tricks the
        * assertion below.
        */
       return ISL_FORMAT_R32G32B32A32_FLOAT;
@@ -550,7 +550,7 @@ translate_tex_format(struct brw_context *brw,
          WARN_ONCE(true, "Demoting sRGB DXT1 texture to non-sRGB\n");
          mesa_format = MESA_FORMAT_RGB_DXT1;
       }
-      return brw_format_for_mesa_format(mesa_format);
+      return brw_isl_format_for_mesa_format(mesa_format);
 
    case MESA_FORMAT_RGBA_ASTC_4x4:
    case MESA_FORMAT_RGBA_ASTC_5x4:
@@ -566,7 +566,7 @@ translate_tex_format(struct brw_context *brw,
    case MESA_FORMAT_RGBA_ASTC_10x10:
    case MESA_FORMAT_RGBA_ASTC_12x10:
    case MESA_FORMAT_RGBA_ASTC_12x12: {
-      GLuint brw_fmt = brw_format_for_mesa_format(mesa_format);
+      GLuint brw_fmt = brw_isl_format_for_mesa_format(mesa_format);
 
       /**
        * It is possible to process these formats using the LDR Profile
@@ -583,8 +583,8 @@ translate_tex_format(struct brw_context *brw,
    }
 
    default:
-      assert(brw_format_for_mesa_format(mesa_format) != 0);
-      return brw_format_for_mesa_format(mesa_format);
+      assert(brw_isl_format_for_mesa_format(mesa_format) != 0);
+      return brw_isl_format_for_mesa_format(mesa_format);
    }
 }
 
index e48b1e1d2d1e61b7b2d0f01458ca48e8921e74b2..16d32960c710abb594f0b96e3b9bbfe1cd8414f1 100644 (file)
@@ -687,7 +687,7 @@ brw_update_buffer_texture_surface(struct gl_context *ctx,
    uint32_t size = tObj->BufferSize;
    drm_intel_bo *bo = NULL;
    mesa_format format = tObj->_BufferObjectFormat;
-   uint32_t brw_format = brw_format_for_mesa_format(format);
+   uint32_t brw_format = brw_isl_format_for_mesa_format(format);
    int texel_size = _mesa_get_format_bytes(format);
 
    if (intel_obj) {
@@ -1598,7 +1598,7 @@ static uint32_t
 get_image_format(struct brw_context *brw, mesa_format format, GLenum access)
 {
    const struct gen_device_info *devinfo = &brw->screen->devinfo;
-   uint32_t hw_format = brw_format_for_mesa_format(format);
+   uint32_t hw_format = brw_isl_format_for_mesa_format(format);
    if (access == GL_WRITE_ONLY) {
       return hw_format;
    } else if (isl_has_matching_typed_storage_image_format(devinfo, hw_format)) {
index b339f998bd2153125d83773418b910ffebcc411d..3295175d0b42d100dc3039cbb30b5befb973c034 100644 (file)
@@ -209,7 +209,7 @@ intel_miptree_supports_non_msrt_fast_clear(struct brw_context *brw,
 
    if (brw->gen >= 9) {
       mesa_format linear_format = _mesa_get_srgb_format_linear(mt->format);
-      const uint32_t brw_format = brw_format_for_mesa_format(linear_format);
+      const uint32_t brw_format = brw_isl_format_for_mesa_format(linear_format);
       return isl_format_supports_ccs_e(&brw->screen->devinfo, brw_format);
    } else
       return true;