mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 19:00:31 +01:00
r600/sb: fix a bug emitting ar load from a constant.
Some tess shaders were doing MOVA_INT _, c0.x on cayman, and then
hitting an assert in sb_bc_finalize.cpp:translate_kcache.
This makes sure the toplevel kcache tracker gets updated,
and the clause gets fixed up.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 68b976bd91)
This commit is contained in:
parent
48db8ed822
commit
14ebd7ecd9
1 changed files with 3 additions and 0 deletions
|
|
@ -1130,6 +1130,9 @@ void post_scheduler::emit_clause() {
|
|||
if (alu.current_ar) {
|
||||
emit_load_ar();
|
||||
process_group();
|
||||
if (!alu.check_clause_limits()) {
|
||||
// Can't happen since clause only contains MOVA/CF_SET_IDX0/1
|
||||
}
|
||||
alu.emit_group();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue