mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
genxml: generate opencl temporary variables with private qualifier
To avoid generic pointers, makes the NIR prints a bit more readable.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Fixes: 41b2ed65 ("genxml: generate opencl packing headers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27637>
This commit is contained in:
parent
a95a2e4d3f
commit
19aeb274e6
1 changed files with 2 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ class Parser(object):
|
|||
static inline __attribute__((always_inline)) void
|
||||
%s_repack(__attribute__((unused)) global void * restrict dst,
|
||||
%s__attribute__((unused)) global const uint32_t * origin,
|
||||
%s__attribute__((unused)) const struct %s * restrict values)
|
||||
%s__attribute__((unused)) private const struct %s * restrict values)
|
||||
{""") % (name, ' ' * len(name), ' ' * len(name), name))
|
||||
else:
|
||||
print(textwrap.dedent("""\
|
||||
|
|
@ -536,7 +536,7 @@ class Parser(object):
|
|||
print(textwrap.dedent("""\
|
||||
static inline __attribute__((always_inline)) void
|
||||
%s_pack(__attribute__((unused)) global void * restrict dst,
|
||||
%s__attribute__((unused)) const struct %s * restrict values)
|
||||
%s__attribute__((unused)) private const struct %s * restrict values)
|
||||
{""") % (name, ' ' * len(name), name))
|
||||
else:
|
||||
print(textwrap.dedent("""\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue