projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7426d95
)
freedreno/a4xx: set fetchsize in mem2gmem texture restore
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sat, 21 Nov 2015 02:01:28 +0000
(21:01 -0500)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Sat, 21 Nov 2015 14:08:16 +0000
(09:08 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
index 8d3112fde3c9a3d91e95bf4764bd13a7e07dc4da..2d41cfe95b31c4c2cceb98f666795d1f992ace48 100644
(file)
--- a/
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
+++ b/
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
@@
-286,7
+286,8
@@
fd4_emit_gmem_restore_tex(struct fd_ringbuffer *ring, unsigned nr_bufs,
PIPE_SWIZZLE_BLUE, PIPE_SWIZZLE_ALPHA));
OUT_RING(ring, A4XX_TEX_CONST_1_WIDTH(bufs[i]->width) |
A4XX_TEX_CONST_1_HEIGHT(bufs[i]->height));
- OUT_RING(ring, A4XX_TEX_CONST_2_PITCH(slice->pitch * rsc->cpp));
+ OUT_RING(ring, A4XX_TEX_CONST_2_PITCH(slice->pitch * rsc->cpp) |
+ A4XX_TEX_CONST_2_FETCHSIZE(fd4_pipe2fetchsize(format)));
OUT_RING(ring, 0x00000000);
OUT_RELOC(ring, rsc->bo, offset, 0, 0);
OUT_RING(ring, 0x00000000);