OSDN Git Service

gbm: track buffer format through DRI drivers
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 21 Feb 2012 20:53:09 +0000 (12:53 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 22 Feb 2012 17:41:40 +0000 (09:41 -0800)
commit8de5c355fa2bf0f30df2c7cf39aee01e793284bf
tree4001a8ba5a618e607626610532a67fe080f7d8f4
parentd35d3d612acef1612aaab9a923b8814d4dbb4d9c
gbm: track buffer format through DRI drivers

GBM needs the buffer format in order to communicate with DRM and clients
for things like scanout.

So track the DRI format requested in the various back ends and use it to
return the DRI format back to GBM when requested.  GBM will then map
this into the GBM surface type (which is in turn based on the DRM fb
format list).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
include/GL/internal/dri_interface.h
src/gallium/state_trackers/dri/common/dri_screen.h
src/gallium/state_trackers/dri/drm/dri2.c
src/gbm/backends/dri/gbm_dri.c
src/gbm/main/gbm.c
src/gbm/main/gbm.h
src/gbm/main/gbmint.h
src/mesa/drivers/dri/intel/intel_regions.h
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.h