OSDN Git Service

freedreno/a4xx: only align slices in non-layer_first textures
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 02:20:00 +0000 (21:20 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 14:08:16 +0000 (09:08 -0500)
commitecb0dcd34c9bb31b240a213cd17c236b224cd290
treeb09156e098089e32f3efe31f4696f4ea804c5c40
parent428146522b3836d8a9b8131d1e56c372c49679a8
freedreno/a4xx: only align slices in non-layer_first textures

When layer is the container, slices are tightly packed inside of each
layer. We don't need any additional alignment. On a3xx, each slice
contains all the layers, so having alignment makes sense.

This fixes a whole slew of array-related piglits, including texelFetch
and tex-miplevel-selection varieties.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/freedreno/freedreno_resource.c