Module: Mesa
Branch: master
Commit: b68e22d5e2f0b9c636aa7070ce0d6d41354c6c41
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b68e22d5e2f0b9c636aa7070ce0d6d41354c6c41

Author: Ilia Mirkin <[email protected]>
Date:   Tue Jul  4 00:24:34 2017 -0400

a5xx: include color swap when decoding vertices

This fixes support for BGRA vertex formats

Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Rob Clark <[email protected]>

---

 src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c 
b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
index f5c0bd27c3..287ec24b18 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
@@ -439,6 +439,7 @@ fd5_emit_vertex_bufs(struct fd_ringbuffer *ring, struct 
fd5_emit *emit)
                        OUT_RING(ring, A5XX_VFD_DECODE_INSTR_IDX(j) |
                                        A5XX_VFD_DECODE_INSTR_FORMAT(fmt) |
                                        COND(elem->instance_divisor, 
A5XX_VFD_DECODE_INSTR_INSTANCED) |
+                                       
A5XX_VFD_DECODE_INSTR_SWAP(fd5_pipe2swap(pfmt)) |
                                        A5XX_VFD_DECODE_INSTR_UNK30 |
                                        COND(!isint, 
A5XX_VFD_DECODE_INSTR_FLOAT));
                        OUT_RING(ring, MAX2(1, elem->instance_divisor)); /* 
VFD_DECODE[j].STEP_RATE */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to