diff options
author | Marek Olšák <[email protected]> | 2019-07-02 21:40:49 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-09 17:24:16 -0400 |
commit | 9d1483de3b89c4b05adb326c6b444ef9ed169243 (patch) | |
tree | 75b5a38d2002ebfa4de8de36b3267e524be4d781 /src/amd | |
parent | 1d3bffaf9cb7ade0676bab969b5d33d6bdabcec8 (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')
-rw-r--r-- | src/amd/common/ac_surface.c | 2 | ||||
-rw-r--r-- | src/amd/common/ac_surface.h | 1 |
2 files changed, 3 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; diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index 0c8a7b11380..ca577b6e5db 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -253,6 +253,7 @@ struct ac_surf_info { struct ac_surf_config { struct ac_surf_info info; + unsigned is_1d : 1; unsigned is_3d : 1; unsigned is_cube : 1; }; |