diff options
author | Rob Clark <[email protected]> | 2016-05-20 12:54:29 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-02 08:58:50 -0400 |
commit | 88cc11e971e8e84c2704a86b325a08cbe8ffc354 (patch) | |
tree | 11f49a8018f09c270e0fc2a5cf8a6bf7bf11af99 /src/gallium/drivers/freedreno/freedreno_context.h | |
parent | d7dfd4cb511b3190c74f5a03ca9bd8351ad6d062 (diff) |
freedreno: switch emit_const_bo() to take prsc's
We can push the unwrap of pipe_resource down.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 7ce29203fa9..fe2a94c9907 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -394,8 +394,9 @@ struct fd_context { void (*emit_const)(struct fd_ringbuffer *ring, enum shader_t type, uint32_t regid, uint32_t offset, uint32_t sizedwords, const uint32_t *dwords, struct pipe_resource *prsc); + /* emit bo addresses as constant: */ void (*emit_const_bo)(struct fd_ringbuffer *ring, enum shader_t type, boolean write, - uint32_t regid, uint32_t num, struct fd_bo **bos, uint32_t *offsets); + uint32_t regid, uint32_t num, struct pipe_resource **prscs, uint32_t *offsets); /* indirect-branch emit: */ void (*emit_ib)(struct fd_ringbuffer *ring, struct fd_ringmarker *start, |