dri: Add KHR_no_error DRI extension

Graphics / Mesa 3D Graphics Library / Mesa - Grigori Goronzy [chown.ath.cx] - 14 July 2017 15:20 EDT

This basic extension allows usage of the __DRI_CTX_FLAG_NO_ERROR flag. This includes support code for classic Mesa drivers to switch on the no-error mode if the flag is set.

v2: Move to common DRI code.

7299e82 dri: Add KHR_no_error DRI extension
include/GL/internal/dri_interface.h | 19 +++++++++++++++++++
src/gallium/state_trackers/dri/dri2.c | 2 ++
src/gallium/state_trackers/dri/dri_context.c | 3 ++-
src/gallium/state_trackers/dri/drisw.c | 1 +
src/mesa/drivers/dri/common/dri_util.c | 12 ++++++++++--
src/mesa/drivers/dri/common/dri_util.h | 2 ++
src/mesa/drivers/dri/i915/intel_screen.c | 1 +
src/mesa/drivers/dri/i965/intel_screen.c | 2 ++
src/mesa/drivers/dri/nouveau/nouveau_screen.c | 1 +
src/mesa/drivers/dri/radeon/radeon_screen.c | 1 +
src/mesa/drivers/dri/swrast/swrast.c | 1 +
11 files changed, 42 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share