summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-02 21:40:49 -0400
committerMarek Olšák <[email protected]>2019-07-09 17:24:16 -0400
commit9d1483de3b89c4b05adb326c6b444ef9ed169243 (patch)
tree75b5a38d2002ebfa4de8de36b3267e524be4d781 /src/amd/common/ac_surface.c
parent1d3bffaf9cb7ade0676bab969b5d33d6bdabcec8 (diff)
radeonsi/gfx10: enable 1D textures
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Acked-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.c')
-rw-r--r--src/amd/common/ac_surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 80ea6915d0a..7d871c47204 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -1471,6 +1471,8 @@ static int gfx9_compute_surface(ADDR_HANDLE addrlib,
* must sample 1D textures as 2D. */
if (config->is_3d)
AddrSurfInfoIn.resourceType = ADDR_RSRC_TEX_3D;
+ else if (info->chip_class != GFX9 && config->is_1d)
+ AddrSurfInfoIn.resourceType = ADDR_RSRC_TEX_1D;
else
AddrSurfInfoIn.resourceType = ADDR_RSRC_TEX_2D;