diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 20:44:51 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-18 11:48:52 +0200 |
commit | 4d6e75776dced684dee0a78c5b70cd96376e84a8 (patch) | |
tree | 44bfee64d278a7b51b698eee7ed1ae679d1ceece /src/gallium/winsys | |
parent | 00f466bad93e13adf3da04bdc0746d76f75b6c1b (diff) |
ac/radeonsi: move some aspects of sanity checking to ac_surface
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_surface.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c index ca391e0c4ea..cd403f5bfb0 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c @@ -34,22 +34,6 @@ static int amdgpu_surface_sanity(const struct pipe_resource *tex) { - /* all dimension must be at least 1 ! */ - if (!tex->width0 || !tex->height0 || !tex->depth0 || - !tex->array_size) - return -EINVAL; - - switch (tex->nr_samples) { - case 0: - case 1: - case 2: - case 4: - case 8: - break; - default: - return -EINVAL; - } - switch (tex->target) { case PIPE_TEXTURE_1D: if (tex->height0 > 1) |