etnaviv: reduce rs alignment requirement for two pixel pipes GPU
authorJonathan Marek <jonathan@marek.ca>
Wed, 19 Jun 2019 21:16:27 +0000 (17:16 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sun, 14 Jul 2019 14:34:17 +0000 (10:34 -0400)
commita9e78a44d1edc39df99bbf71e5e1d8d762438ceb
treec26c2968c5f387d68704ae37d6969cea9183aac0
parent2c393053bf5c1e76bdcf37f620259fc63dd31859
etnaviv: reduce rs alignment requirement for two pixel pipes GPU

The rs alignment doesn't have to be multiplied by # of pixel pipes.

This works on GC2000 which doesn't have the SINGLE_BUFFER feature.

This fixes some cubemaps (NPOT / small mipmap levels) because aligning by 8
breaks the expected alignment of 4 for tiled format. We don't want to mess
with the alignment of tiled formats.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_rs.c
src/gallium/drivers/etnaviv/etnaviv_transfer.c
src/gallium/drivers/etnaviv/etnaviv_translate.h