mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +01:00
r600: ignore dest sel for non-write targets when counting registers
Since the value is not written, there is no need to allocate a register for it, so don't take it into account. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Acked-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15714>
This commit is contained in:
parent
67d145d9ab
commit
3c4644afb0
1 changed files with 1 additions and 1 deletions
|
|
@ -1302,7 +1302,7 @@ int r600_bytecode_add_alu_type(struct r600_bytecode *bc,
|
|||
r600_bytecode_special_constants(nalu->src[i].value,
|
||||
&nalu->src[i].sel);
|
||||
}
|
||||
if (nalu->dst.sel >= bc->ngpr) {
|
||||
if (nalu->dst.write && nalu->dst.sel >= bc->ngpr) {
|
||||
bc->ngpr = nalu->dst.sel + 1;
|
||||
}
|
||||
list_addtail(&nalu->list, &bc->cf_last->alu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue