iris: provide dummy iris_image_view_aux_usage
authorTapani Pälli <tapani.palli@intel.com>
Fri, 6 Mar 2020 07:17:35 +0000 (09:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 10:34:21 +0000 (10:34 +0000)
Similar to iris_resource_texture_aux_usage this function will
determine proper aux_usage for image, now it will default to
ISL_AUX_USAGE_NONE.

v2: drop gen_device_info parameter, rename function (Nanley)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>

src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_resource.h

index a46d7bf45b33aaddb416a67e8fd5eb5111de1e3c..0d914d212a3ef2cc7db8158b5d81c194f8283395 100644 (file)
@@ -986,6 +986,14 @@ iris_resource_texture_aux_usage(struct iris_context *ice,
    return ISL_AUX_USAGE_NONE;
 }
 
+enum isl_aux_usage
+iris_image_view_aux_usage(struct iris_context *ice,
+                          const struct pipe_image_view *pview,
+                          const struct shader_info *info)
+{
+   return ISL_AUX_USAGE_NONE;
+}
+
 static bool
 isl_formats_are_fast_clear_compatible(enum isl_format a, enum isl_format b)
 {
index d3489aa3659421217c64814ca48c1c22c898b3d1..6a55c387fe3d158fb5b158e73ba75586ee24fea2 100644 (file)
@@ -31,6 +31,7 @@
 
 struct iris_batch;
 struct iris_context;
+struct shader_info;
 
 #define IRIS_MAX_MIPLEVELS 15
 
@@ -463,6 +464,10 @@ void iris_resource_prepare_texture(struct iris_context *ice,
                                    uint32_t start_level, uint32_t num_levels,
                                    uint32_t start_layer, uint32_t num_layers);
 
+enum isl_aux_usage iris_image_view_aux_usage(struct iris_context *ice,
+                                             const struct pipe_image_view *pview,
+                                             const struct shader_info *info);
+
 static inline bool
 iris_resource_unfinished_aux_import(struct iris_resource *res)
 {