diff options
author | Samuel Pitoiset <[email protected]> | 2018-07-05 18:56:55 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-07-06 10:22:53 +0200 |
commit | 85865dbe0d96f18ac768b4063da94f52ee67a7fd (patch) | |
tree | af5d89133ba981e8532c34234fb7a81c9075f491 /src | |
parent | 965a06dbd7401fb319b6f85ca55c9687a05335f1 (diff) |
radv: fix emitting the view index on GFX9
For merged shaders, VS as HS for example.
Cc: <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index b7519dce49c..1ea023a8116 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3079,8 +3079,9 @@ static void radv_emit_view_index(struct radv_cmd_buffer *cmd_buffer, unsigned in { struct radv_pipeline *pipeline = cmd_buffer->state.pipeline; for (unsigned stage = 0; stage < MESA_SHADER_STAGES; ++stage) { - if (!pipeline->shaders[stage]) + if (!radv_get_shader(pipeline, stage)) continue; + struct radv_userdata_info *loc = radv_lookup_user_sgpr(pipeline, stage, AC_UD_VIEW_INDEX); if (loc->sgpr_idx == -1) continue; |