diff options
author | Lepton Wu <[email protected]> | 2019-09-15 20:05:44 -0700 |
---|---|---|
committer | Lepton Wu <[email protected]> | 2019-10-24 23:11:08 +0000 |
commit | a4fec4dd6a2ff2209047ea9931cbf50bb4521819 (patch) | |
tree | 521ea3694dca1c43d4a56a42ddf8e2deff9771f6 /src/gallium/drivers/virgl | |
parent | ee2050b1111b65594f3470035f7b6f1330824684 (diff) |
virgl: Remove formats with unusual sample count.
Most GPU require the sample count is power of 2. Just remove those
formats with unusual sample count. This decreases dEQP EGL tests run
time a lot.
Signed-off-by: Lepton Wu <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 13e5bf57d07..bfa42b59102 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -659,6 +659,9 @@ virgl_is_format_supported( struct pipe_screen *screen, if (MAX2(1, sample_count) != MAX2(1, storage_sample_count)) return false; + if (!util_is_power_of_two_or_zero(sample_count)) + return false; + assert(target == PIPE_BUFFER || target == PIPE_TEXTURE_1D || target == PIPE_TEXTURE_1D_ARRAY || |