Summary: | AMD Kaveri: gbm_bo_get_stride returns wrong values for cursor buffers | ||
---|---|---|---|
Product: | Mesa | Reporter: | Andreas Pokorny <andreas.pokorny> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED NOTABUG | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 10.4 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Andreas Pokorny
2015-02-16 08:46:31 UTC
You need to pass the dimensions queried from DRM_CAP_CURSOR_WIDTH and DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hardware only supports 256x256 hardware cursors. (In reply to Michel Dänzer from comment #1) > You need to pass the dimensions queried from DRM_CAP_CURSOR_WIDTH and > DRM_CAP_CURSOR_HEIGHT instead of hardcoding 64. As of CIK, Radeon hardware > only supports 256x256 hardware cursors. Yes, but since buffer creation with a smaller size does not fail, gbm_bo_get_stride should return the right size. (In reply to Andreas Pokorny from comment #2) > Yes, but since buffer creation with a smaller size does not fail, > gbm_bo_get_stride should return the right size. It returns the stride of the allocated buffer. The problem is that the buffer size doesn't match the hardware cursor size in the first place. Returning a different stride can't change that. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.