Skip to content

zink: fix device codegen extension detection

Mike Blumenkrantz requested to merge zmike/mesa:zink-codegenfix into master

the logic for this was broken and failed to detect any extensions other than the first one listed. instead, we must follow this logic chain:

1. check the extension name
  2a. if this is an extension that got promoted to core, check the @since version
    3a. if current version >= @since version
      4a. if the extension has required features/properties, check those
      4b. else set supported
    3b. else
      4a. if the extension has required features/properties, check those
      4b. else set supported
  2b. else
    4a. if the extension has required features/properties, check those
    4b. else set supported

Fixes: efe6f00e ("zink/codegen: do not enable extensions that are now core")

Edited by Mike Blumenkrantz

Merge request reports