diff options
author | Rob Clark <[email protected]> | 2014-12-05 11:43:03 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-12-09 18:01:49 -0500 |
commit | 1e3a732603a4a4d5b3e7102cf0d7840f79ecf5c4 (patch) | |
tree | 30db809ed8d31c0707bb2f6024c0468751b9c948 /src/gallium/drivers/freedreno/freedreno_resource.c | |
parent | 5d7c9c9160e0d425df220e5e1898d0ab7dee2c83 (diff) |
freedreno/a4xx: texture fixes
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 461e378c89e..d604aa3f1f8 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -216,6 +216,12 @@ setup_slices(struct fd_resource *rsc, uint32_t alignment) static uint32_t slice_alignment(struct pipe_screen *pscreen, const struct pipe_resource *tmpl) { + struct fd_screen *screen = fd_screen(pscreen); + + /* on a4xx, seems like everything is aligned to page: */ + if ((screen->gpu_id >= 400) && (screen->gpu_id < 500)) + return 4096; + /* on a3xx, 2d array and 3d textures seem to want their * layers aligned to page boundaries: */ |