diff options
Diffstat (limited to 'src/gallium/state_trackers/vega/shaders_cache.c')
-rw-r--r-- | src/gallium/state_trackers/vega/shaders_cache.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c index 30deeca7dc..d1eaa5bad6 100644 --- a/src/gallium/state_trackers/vega/shaders_cache.c +++ b/src/gallium/state_trackers/vega/shaders_cache.c @@ -345,23 +345,27 @@ create_shader(struct pipe_context *pipe, debug_assert(shaders_asm[14].id == VEGA_BLEND_SOFTLIGHT_SVG_KHR_SHADER); shaders[idx] = &shaders_asm[14]; ++idx; + } else if ((id & VEGA_BLEND_SOFTLIGHT_KHR_SHADER)){ + debug_assert(shaders_asm[15].id == VEGA_BLEND_SOFTLIGHT_KHR_SHADER); + shaders[idx] = &shaders_asm[15]; + ++idx; } /* fifth stage */ if ((id & VEGA_PREMULTIPLY_SHADER)) { - debug_assert(shaders_asm[15].id == VEGA_PREMULTIPLY_SHADER); - shaders[idx] = &shaders_asm[15]; + debug_assert(shaders_asm[16].id == VEGA_PREMULTIPLY_SHADER); + shaders[idx] = &shaders_asm[16]; ++idx; } else if ((id & VEGA_UNPREMULTIPLY_SHADER)) { - debug_assert(shaders_asm[16].id == VEGA_UNPREMULTIPLY_SHADER); - shaders[idx] = &shaders_asm[16]; + debug_assert(shaders_asm[17].id == VEGA_UNPREMULTIPLY_SHADER); + shaders[idx] = &shaders_asm[17]; ++idx; } /* sixth stage */ if ((id & VEGA_BW_SHADER)) { - debug_assert(shaders_asm[17].id == VEGA_BW_SHADER); - shaders[idx] = &shaders_asm[17]; + debug_assert(shaders_asm[18].id == VEGA_BW_SHADER); + shaders[idx] = &shaders_asm[18]; ++idx; } |