[Mesa-dev] [Bug 104926] swrast: Mesa 17.3.3 produces: HW cursor for format 875713089 not supported

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 15 16:16:38 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=104926

--- Comment #3 from Michal Srb <michalsrb at gmail.com> ---
I was able to reproduce the `gbm_device_is_format_supported` failure. The call
sequence is following:

* gbm_device_is_format_supported
* gbm_dri_is_format_supported (gbm->is_format_supported)
  - `dri->image->base.version` is now 17 (this changed in the bisected commit
     e14fe41e0!) and `dri->image->queryDmaBufModifiers` is set, so it will be
     called.
* dri2_query_dma_buf_modifiers (dri->image->queryDmaBufModifiers)
  - oh no, `pscreen->query_dmabuf_modifiers` is 0, so return false...

The situation depends on whether the screen was initialized with
`dri2_init_screen` or with `dri_kms_init_screen`. In case of `dri2_init_screen`
the `dri->image->queryDmaBufModifiers` is not set if
`pscreen->query_dmabuf_modifiers` is null. In case of `dri_kms_init_screen` it
is set unconditionally.

The condition was added to `dri2_init_screen` in commit a65db0ad1c3. I think
that equivalent condition is needed in `dri_kms_init_screen`. Will send
patch...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180315/6426d12a/attachment.html>


More information about the mesa-dev mailing list