r600/sfn: Update resource based instruction index mode check

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21347>
This commit is contained in:
Gert Wollny 2023-02-10 16:13:04 +01:00 committed by Marge Bot
parent e7b497fe87
commit af3d496253

View file

@ -294,8 +294,9 @@ public:
auto buffer_index_mode() const -> EBufferIndexMode
{
if (!m_offset)
if (!m_offset || !m_offset->has_flag(Register::addr_or_idx))
return bim_none;
switch (m_offset->sel()) {
case 1:
return bim_zero;