diff options
author | Dave Airlie <[email protected]> | 2017-10-20 03:45:51 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-20 06:11:10 +0100 |
commit | 5bc5e07d81c8eccb3645260ca4072e652d0cf052 (patch) | |
tree | 1709fc684926936022503ae97c7aec7a837bc311 /src/amd/vulkan/radv_cmd_buffer.c | |
parent | e6acc20b6a4acd4b80249700863141674ff8da31 (diff) |
radv: fixup tess eval shader when combined.
This fixes some access to the tess eval shader when it's combined
with geometry on gfx9.
This is a review of Bas's commit:
radv: Prevent crashing by accessing TES for VGT reuse depth.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index cc1b9494fba..a62aa6ccb9c 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -500,6 +500,11 @@ radv_lookup_user_sgpr(struct radv_pipeline *pipeline, return &pipeline->shaders[MESA_SHADER_TESS_CTRL]->info.user_sgprs_locs.shader_data[idx]; if (pipeline->shaders[MESA_SHADER_GEOMETRY]) return &pipeline->shaders[MESA_SHADER_GEOMETRY]->info.user_sgprs_locs.shader_data[idx]; + } else if (stage == MESA_SHADER_TESS_EVAL) { + if (pipeline->shaders[MESA_SHADER_TESS_EVAL]) + return &pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.user_sgprs_locs.shader_data[idx]; + if (pipeline->shaders[MESA_SHADER_GEOMETRY]) + return &pipeline->shaders[MESA_SHADER_GEOMETRY]->info.user_sgprs_locs.shader_data[idx]; } return &pipeline->shaders[stage]->info.user_sgprs_locs.shader_data[idx]; } |