On 16 June 2017 at 00:55, Eric Engestrom <e...@engestrom.ch> wrote:
> dri2_conf represents a similar config (which shouldn't be counted)
> if its config has the ID EGL_DONT_CARE.
>
> Reported-by: Liu Zhiquan <zhiquan....@intel.com>
> Signed-off-by: Eric Engestrom <e...@engestrom.ch>
> ---
>
> Re-implemented Liu Zhiquan's fix, without all the unnecessary changes,
> and applied to all platforms, but with one major change: compare against
> the one value that means the config shouldn't be counted.
>
Thanks Eric. I'm not sure if comparing against DONT_CARE is correct here.

Upon calling dri2_add_config() the "base" config ID is set to "count +
1" via a) restored. At a later stage ConfigID is discarded for the
config search (_eglFilterArray) and depending on the result we a)
restore the ID no existing config found or b) reuse the existing egl
config, attaching the dri config to it.

Since one cannot have a config with ConfigID == EGL_DON_CARE (props to
_eglValidateConfig) the new code will trigger even when not needed.

Although I could be missing something?
-Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to