diff options
author | Marek Olšák <[email protected]> | 2018-05-01 00:44:36 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-05-10 18:34:37 -0400 |
commit | a969f184cf3e8f2d9089fc4df424fa590f967983 (patch) | |
tree | a80758f705cc5962595a7f31204dac051453e859 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 2309cedf44560b34e2f428e10e32055be86d06ab (diff) |
radeonsi: add an environment variable that forces EQAA for MSAA allocations
This is for testing and experiments.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index e133bf28589..c7585b285e9 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2119,6 +2119,7 @@ static boolean si_is_format_supported(struct pipe_screen *screen, unsigned sample_count, unsigned usage) { + struct si_screen *sscreen = (struct si_screen *)screen; unsigned retval = 0; if (target >= PIPE_MAX_TEXTURE_TYPES) { @@ -2142,6 +2143,10 @@ static boolean si_is_format_supported(struct pipe_screen *screen, case 8: break; case 16: + /* Allow resource_copy_region with nr_samples == 16. */ + if (sscreen->eqaa_force_coverage_samples == 16 && + !util_format_is_depth_or_stencil(format)) + return true; if (format == PIPE_FORMAT_NONE) return true; else |