ac: Handle invalid GFX10 format correctly in ac_get_tbuffer_format.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 6 Nov 2019 12:29:26 +0000 (13:29 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 8 Nov 2019 12:30:30 +0000 (13:30 +0100)
commit911a8261419f48dcd756f78832fa5a5f4c5b8d93
treee254b1b581eff4412ca7db87251d8248504cd1e7
parentee82f9f07e16cc6d8134f70496731f1743423834
ac: Handle invalid GFX10 format correctly in ac_get_tbuffer_format.

It happens that some games try to access a vertex buffer without
a valid format. This case was incorrectly handled by
ac_get_tbuffer_format which made ACO emit an invalid instruction.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Cc: 19.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_shader_util.c
src/amd/compiler/aco_assembler.cpp