Mesa (master): radv: remove one useless image type in the fmask expand shader
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 5 18:50:20 UTC 2019
Module: Mesa
Branch: master
Commit: 8206390546972d233724cfc7c8d0f74bcf12b807
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8206390546972d233724cfc7c8d0f74bcf12b807
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon May 20 10:28:01 2019 +0200
radv: remove one useless image type in the fmask expand shader
Both input and output images use the same type.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_meta_fmask_expand.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/amd/vulkan/radv_meta_fmask_expand.c b/src/amd/vulkan/radv_meta_fmask_expand.c
index f4b55328929..12533935348 100644
--- a/src/amd/vulkan/radv_meta_fmask_expand.c
+++ b/src/amd/vulkan/radv_meta_fmask_expand.c
@@ -30,10 +30,7 @@ build_fmask_expand_compute_shader(struct radv_device *device, int samples)
{
nir_builder b;
char name[64];
- const struct glsl_type *input_img_type =
- glsl_sampler_type(GLSL_SAMPLER_DIM_MS, false, false,
- GLSL_TYPE_FLOAT);
- const struct glsl_type *output_img_type =
+ const struct glsl_type *img_type =
glsl_sampler_type(GLSL_SAMPLER_DIM_MS, false, false,
GLSL_TYPE_FLOAT);
@@ -46,12 +43,12 @@ build_fmask_expand_compute_shader(struct radv_device *device, int samples)
b.shader->info.cs.local_size[2] = 1;
nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform,
- input_img_type, "s_tex");
+ img_type, "s_tex");
input_img->data.descriptor_set = 0;
input_img->data.binding = 0;
nir_variable *output_img = nir_variable_create(b.shader, nir_var_uniform,
- output_img_type, "out_img");
+ img_type, "out_img");
output_img->data.descriptor_set = 0;
output_img->data.binding = 1;
More information about the mesa-commit
mailing list