diff options
author | Marek Olšák <[email protected]> | 2017-09-07 00:13:37 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-09-07 17:59:37 +0200 |
commit | 4bd2bdbb3c1df08c185b7461474ce9b323fc1b7d (patch) | |
tree | b5066b738a74df87e8c25c30080523b62ed4c975 /src/amd/common/ac_surface.c | |
parent | c4741bbb6fb98f78551f9e42ae570dcc924e0031 (diff) |
ac/surface: add radeon_surf::has_stencil for convenience
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.c')
-rw-r--r-- | src/amd/common/ac_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 4edefc7c40a..c6ff57362f7 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -655,6 +655,7 @@ static int gfx6_compute_surface(ADDR_HANDLE addrlib, } } + surf->has_stencil = !!(surf->flags & RADEON_SURF_SBUFFER); surf->num_dcc_levels = 0; surf->surf_size = 0; surf->dcc_size = 0; @@ -1077,6 +1078,7 @@ static int gfx9_compute_surface(ADDR_HANDLE addrlib, } surf->u.gfx9.resource_type = AddrSurfInfoIn.resourceType; + surf->has_stencil = !!(surf->flags & RADEON_SURF_SBUFFER); surf->num_dcc_levels = 0; surf->surf_size = 0; |