radv: fix emitting the view index on GFX9
For merged shaders, VS as HS for example. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
965a06dbd7
commit
85865dbe0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue