mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
etnaviv: handle 8 byte block in tiling
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com> Reviewed-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
parent
2af39c719e
commit
396818fd9d
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue