File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1196,13 +1196,14 @@ static int amdgpu_display_get_fb_info(const struct amdgpu_framebuffer *amdgpu_fb
1196
1196
static int amdgpu_display_gem_fb_verify_and_init (struct drm_device * dev ,
1197
1197
struct amdgpu_framebuffer * rfb ,
1198
1198
struct drm_file * file_priv ,
1199
+ const struct drm_format_info * info ,
1199
1200
const struct drm_mode_fb_cmd2 * mode_cmd ,
1200
1201
struct drm_gem_object * obj )
1201
1202
{
1202
1203
int ret ;
1203
1204
1204
1205
rfb -> base .obj [0 ] = obj ;
1205
- drm_helper_mode_fill_fb_struct (dev , & rfb -> base , NULL , mode_cmd );
1206
+ drm_helper_mode_fill_fb_struct (dev , & rfb -> base , info , mode_cmd );
1206
1207
/* Verify that the modifier is supported. */
1207
1208
if (!drm_any_plane_has_format (dev , mode_cmd -> pixel_format ,
1208
1209
mode_cmd -> modifier [0 ])) {
@@ -1331,7 +1332,7 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev,
1331
1332
}
1332
1333
1333
1334
ret = amdgpu_display_gem_fb_verify_and_init (dev , amdgpu_fb , file_priv ,
1334
- mode_cmd , obj );
1335
+ info , mode_cmd , obj );
1335
1336
if (ret ) {
1336
1337
kfree (amdgpu_fb );
1337
1338
drm_gem_object_put (obj );
You can’t perform that action at this time.
0 commit comments