diff options
author | Rob Clark <[email protected]> | 2016-12-06 13:32:31 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-12-27 16:54:01 -0500 |
commit | f0439040808f81d5b9a4072de7469dacdda96fa7 (patch) | |
tree | 5288836c478a20f93e0a9f7cff28e15b2675b46d /src/gallium/drivers/freedreno/freedreno_resource.c | |
parent | 859cb24d94f3b0b7f8f0e98642ff4b92b1f7f2f1 (diff) |
freedreno/a5xx: texture layout
Seems to be imilar to a4xx, and sampler state "array-pitch" needs
to be aligned to page size.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 174c1d48ce8..5a2bdfc6651 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -819,7 +819,7 @@ fd_resource_create(struct pipe_screen *pscreen, assert(rsc->cpp); alignment = slice_alignment(pscreen, tmpl); - if (is_a4xx(fd_screen(pscreen))) { + if (is_a4xx(fd_screen(pscreen)) || is_a5xx(fd_screen(pscreen))) { switch (tmpl->target) { case PIPE_TEXTURE_3D: rsc->layer_first = false; |