Skip to contentSkip to conversation

radeon framebuffer tiling

DISCUSSION Jay Cornwall 2 participants 3 messages Jan 4, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

dce4_crtc_do_set_base is the only location in which EVERGREEN_GRPH_CONTROL is updated. This currently configures a non-tiled framebuffer on my SI system.

This design prevents drmModePageFlip from handling a framebuffer with a different tiling configuration.

Is this the intended architecture? i.e. All surfaces provided to drmModePageFlip should match the initial framebuffer layout, or should EVERGREEN_GRPH_CONTROL be updated on every page flip?

Signature · 5 lines
Jay Cornwall
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 6 lines · Jay Cornwall

Hi,

dce4_crtc_do_set_base is the only location in which EVERGREEN_GRPH_CONTROL is updated. This currently configures a non-tiled framebuffer on my SI system.

Quoted 6 lines

This design prevents drmModePageFlip from handling a framebuffer with a different tiling configuration.

Is this the intended architecture? i.e. All surfaces provided to drmModePageFlip should match the initial framebuffer layout, or should EVERGREEN_GRPH_CONTROL be updated on every page flip?

Pageflipping is only available between surfaces of the same format (i.e., we only update the base address, not the other parameters).

Alex
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 10 lines · Alex Deucher
Quoted 9 lines · Jay Cornwall

Hi,

dce4_crtc_do_set_base is the only location in which EVERGREEN_GRPH_CONTROL is updated. This currently configures a non-tiled framebuffer on my SI system.

This design prevents drmModePageFlip from handling a framebuffer with a different tiling configuration.

Quoted 6 lines
Quoted 3 lines

Is this the intended architecture? i.e. All surfaces provided to drmModePageFlip should match the initial framebuffer layout, or should EVERGREEN_GRPH_CONTROL be updated on every page flip?

Pageflipping is only available between surfaces of the same format (i.e., we only update the base address, not the other parameters).

Thanks, I got it now. KWin/Wayland is only calling drmModeSetCrtc when the buffer stride changes, but flipping once from a dumb buffer to a GBM buffer.

I've filed: https://bugs.kde.org/show_bug.cgi?id=357543

Signature · 5 lines
Jay Cornwall
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel