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:
committed by
Marge Bot
parent
a95a2e4d3f
commit
19aeb274e6
@@ -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("""\
|
||||
|
||||
Reference in New Issue
Block a user