dri: add a way to request that modes have matching color/zs depths

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 23 August 2016 17:30 UTC

Some GPUs, notably nv3x/nv4x can't render to mismatched color/zs framebuffer depths. Fallbacks can be done by the driver, with shadow surfaces, but no reason to encourage applications to select non-matching glx visuals.

5283900 dri: add a way to request that modes have matching color/zs depths
src/gallium/state_trackers/dri/dri_screen.c | 4 ++--
src/mesa/drivers/dri/common/utils.c | 21 ++++++++++++++++++---
src/mesa/drivers/dri/common/utils.h | 2 +-
src/mesa/drivers/dri/i915/intel_screen.c | 4 ++--
src/mesa/drivers/dri/i965/intel_screen.c | 6 +++---
src/mesa/drivers/dri/nouveau/nouveau_screen.c | 2 +-
src/mesa/drivers/dri/radeon/radeon_screen.c | 2 +-
src/mesa/drivers/dri/swrast/swrast.c | 2 +-
8 files changed, 29 insertions(+), 14 deletions(-)

Upstream: cgit.freedesktop.org


  • Share