diff options
author | Rob Clark <[email protected]> | 2015-05-23 13:37:41 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-06-21 07:53:50 -0400 |
commit | 694beb8b830c993e9bfb744655be3dbd558ab3a8 (patch) | |
tree | dcbfba77214b9ad8e9c7ab9001ffbdaeba1e1315 /src/gallium/drivers/freedreno/ir3/ir3.h | |
parent | 5c1e153467a50dec91df49239654017e9ed86d69 (diff) |
freedreno/ir3: introduce ir3_compiler object
Right now, just provides a cleaner way to get at the gpu-id, given the
separation between compiler and context. But we will need this also to
hold the reg-set for new register allocation.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3.h')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3.h b/src/gallium/drivers/freedreno/ir3/ir3.h index 3c4fd2d46b0..29a6e402056 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3.h +++ b/src/gallium/drivers/freedreno/ir3/ir3.h @@ -35,6 +35,7 @@ /* low level intermediate representation of an adreno shader program */ +struct ir3_compiler; struct ir3; struct ir3_instruction; struct ir3_block; @@ -324,6 +325,7 @@ static inline int ir3_neighbor_count(struct ir3_instruction *instr) struct ir3_heap_chunk; struct ir3 { + struct ir3_compiler *compiler; /* Track bary.f (and ldlv) instructions.. this is needed in * scheduling to ensure that all varying fetches happen before @@ -367,7 +369,7 @@ struct ir3_block { struct list_head instr_list; }; -struct ir3 * ir3_create(void); +struct ir3 * ir3_create(struct ir3_compiler *compiler); void ir3_destroy(struct ir3 *shader); void * ir3_assemble(struct ir3 *shader, struct ir3_info *info, uint32_t gpu_id); |