summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_freedreno.c
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm_freedreno.c')
-rw-r--r--gralloc_drm_freedreno.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc_drm_freedreno.c b/gralloc_drm_freedreno.c
index 3da5a65..b4efee5 100644
--- a/gralloc_drm_freedreno.c
+++ b/gralloc_drm_freedreno.c
@@ -155,12 +155,12 @@ static void fd_init_kms_features(struct gralloc_drm_drv_t *drv,
{
struct fd_info *info = (struct fd_info *) drv;
- switch (drm->primary.fb_format) {
+ switch (drm->primary->fb_format) {
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGB_565:
break;
default:
- drm->primary.fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
+ drm->primary->fb_format = HAL_PIXEL_FORMAT_BGRA_8888;
break;
}