summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2018-05-01 16:48:41 +0200
committerChristian Gmeiner <[email protected]>2019-11-25 20:11:30 +0100
commit396818fd9d2e24ab0e05eed609310dd74fa52d53 (patch)
tree2784cdc891f91140817fd94e1f600a14ee1fa5a0 /src/gallium
parent2af39c719eecf6ffde29ead442c530b6fa6750d5 (diff)
etnaviv: handle 8 byte block in tiling
Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Wladimir J. van der Laan <[email protected]> Reviewed-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_tiling.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_tiling.c b/src/gallium/drivers/etnaviv/etnaviv_tiling.c
index f4f85c1d6e6..113b39cc98f 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_tiling.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_tiling.c
@@ -68,7 +68,9 @@ etna_texture_tile(void *dest, void *src, unsigned basex, unsigned basey,
unsigned dst_stride, unsigned width, unsigned height,
unsigned src_stride, unsigned elmtsize)
{
- if (elmtsize == 4) {
+ if (elmtsize == 8) {
+ DO_TILE(uint64_t)
+ } else if (elmtsize == 4) {
DO_TILE(uint32_t)
} else if (elmtsize == 2) {
DO_TILE(uint16_t)
@@ -84,7 +86,9 @@ etna_texture_untile(void *dest, void *src, unsigned basex, unsigned basey,
unsigned src_stride, unsigned width, unsigned height,
unsigned dst_stride, unsigned elmtsize)
{
- if (elmtsize == 4) {
+ if (elmtsize == 8) {
+ DO_UNTILE(uint64_t)
+ } else if (elmtsize == 4) {
DO_UNTILE(uint32_t);
} else if (elmtsize == 2) {
DO_UNTILE(uint16_t);