mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
r600: make r600_load_ar available to driver code
This is needed for the new NIR assembler 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
050e05db22
commit
e466d73368
2 changed files with 4 additions and 3 deletions
|
|
@ -1212,7 +1212,7 @@ static int load_ar_r6xx(struct r600_bytecode *bc)
|
|||
}
|
||||
|
||||
/* load AR register from gpr (bc->ar_reg) with MOVA_INT */
|
||||
static int load_ar(struct r600_bytecode *bc)
|
||||
int r600_load_ar(struct r600_bytecode *bc)
|
||||
{
|
||||
struct r600_bytecode_alu alu;
|
||||
int r;
|
||||
|
|
@ -1293,10 +1293,10 @@ int r600_bytecode_add_alu_type(struct r600_bytecode *bc,
|
|||
/* Check AR usage and load it if required */
|
||||
for (i = 0; i < 3; i++)
|
||||
if (nalu->src[i].rel && !bc->ar_loaded)
|
||||
load_ar(bc);
|
||||
r600_load_ar(bc);
|
||||
|
||||
if (nalu->dst.rel && !bc->ar_loaded)
|
||||
load_ar(bc);
|
||||
r600_load_ar(bc);
|
||||
|
||||
/* Setup the kcache for this ALU instruction. This will start a new
|
||||
* ALU clause if needed. */
|
||||
|
|
|
|||
|
|
@ -328,6 +328,7 @@ void r600_bytecode_special_constants(uint32_t value, unsigned *sel);
|
|||
void r600_bytecode_disasm(struct r600_bytecode *bc);
|
||||
void r600_bytecode_alu_read(struct r600_bytecode *bc,
|
||||
struct r600_bytecode_alu *alu, uint32_t word0, uint32_t word1);
|
||||
int r600_load_ar(struct r600_bytecode *bc);
|
||||
|
||||
int cm_bytecode_add_cf_end(struct r600_bytecode *bc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue