Skip to content
Commit 104c598b authored by Daniel Stone's avatar Daniel Stone Committed by Dylan Baker
Browse files

st/dri: Don't expose sRGB formats to clients



Though the SARGB8888 format is used internally through its FourCC value,
it is not a real format as defined by drm_fourcc.h; it cannot be used
with KMS or other interfaces expecting drm_fourcc.h format codes.

Ensure we don't advertise it through the dmabuf format/modifier query
interfaces, preventing us from tripping over an assert.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Reported-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Fixes: 8c1b9882 ("egl/dri2: Guard against invalid fourcc formats")
Acked-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
(cherry picked from commit 01c0aa9f)
parent 1ec6ba93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment