Skip to content

clc: Fix const arg metadata detection

Jesse Natalie requested to merge jenatali/mesa:clc-const-arg-metadata into main

This is copied from !13449 (merged) but into the other CL metadata parsing code. This fixes 2 things:

  1. For LLVM 13, the translator no longer emits SpvDecorationConstant. Use kernel_arg_type_qual string to find it too.
  2. The CL API expects args in the __constant address space to also be marked const. CLOn12 has logic for this, but go ahead and do it in the metadata parsing so the compiler output is the same between new and old LLVM.

Merge request reports