diff options
author | Marek Olšák <[email protected]> | 2018-05-23 22:25:12 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-31 18:28:41 -0400 |
commit | 8632626c81a09315276d7defa63092247d7fd308 (patch) | |
tree | ed5377da2e0d5e3061b333e49651988124c226d8 /src/gallium/auxiliary/util/u_tests.c | |
parent | 0caf74bbcdf38914cecffa8772ee9b122b249b78 (diff) |
gallium: add pipe_resource::nr_storage_samples, and set it same as nr_samples
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_tests.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c index bae3fa111a4..f8c001813c1 100644 --- a/src/gallium/auxiliary/util/u_tests.c +++ b/src/gallium/auxiliary/util/u_tests.c @@ -55,6 +55,7 @@ util_create_texture2d(struct pipe_screen *screen, unsigned width, templ.depth0 = 1; templ.array_size = 1; templ.nr_samples = num_samples; + templ.nr_storage_samples = num_samples; templ.format = format; templ.usage = PIPE_USAGE_DEFAULT; templ.bind = PIPE_BIND_SAMPLER_VIEW | |