summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_radeon.c
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm_radeon.c')
-rw-r--r--gralloc_drm_radeon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc_drm_radeon.c b/gralloc_drm_radeon.c
index 94c7613..94dc2ed 100644
--- a/gralloc_drm_radeon.c
+++ b/gralloc_drm_radeon.c
@@ -324,12 +324,12 @@ static void drm_gem_radeon_unmap(struct gralloc_drm_drv_t *drv,
static void drm_gem_radeon_init_kms_features(struct gralloc_drm_drv_t *drv,
struct gralloc_drm_t *drm)
{
- switch (drm->fb_format) {
+ switch (drm->primary.fb_format) {
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGB_565:
break;
default:
- drm->fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
+ drm->primary.fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
break;
}