From 5f488ed00dade8c487d0d5d2d606085cc10ec335 Mon Sep 17 00:00:00 2001 From: Italo Nicola Date: Wed, 8 Dec 2021 04:09:10 -0300 Subject: [PATCH] shader: Remove compiled_fs_uid from shader key Recording the uid from the fragment shader seems unnecessary when we already track most of the information through vars_info. Signed-off-by: Italo Nicola Reviewed-by: Gert Wollny --- src/vrend_renderer.c | 1 - src/vrend_shader.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 0737f19..6dc03b4 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -3479,7 +3479,6 @@ static inline void vrend_sync_shader_io(struct vrend_sub_context *sub_ctx, if (sub_ctx->shaders[PIPE_SHADER_FRAGMENT]) { struct vrend_shader *fs = sub_ctx->shaders[PIPE_SHADER_FRAGMENT]->current; - key->compiled_fs_uid = fs->uid; key->fs_info = &fs->var_sinfo.fs_info; next_type = PIPE_SHADER_FRAGMENT; } diff --git a/src/vrend_shader.h b/src/vrend_shader.h index 5288a77..05cd463 100644 --- a/src/vrend_shader.h +++ b/src/vrend_shader.h @@ -175,8 +175,6 @@ struct vrend_shader_key { } vs; }; - uint32_t compiled_fs_uid; - uint32_t sampler_views_lower_swizzle_mask; uint16_t tex_swizzle[PIPE_MAX_SHADER_SAMPLER_VIEWS];