mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
clc,libagx: automatically set lang version
bit less meson cargocult. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33242>
This commit is contained in:
parent
9f460eadab
commit
3bfcc4f323
3 changed files with 6 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ libagx_spv = custom_target(
|
|||
command : [
|
||||
prog_mesa_clc, '-o', '@OUTPUT@', '--depfile', '@DEPFILE@',
|
||||
libagx_shader_files, '--',
|
||||
'-cl-std=cl2.0', '-D__OPENCL_VERSION__=200',
|
||||
'-I' + join_paths(meson.current_source_dir(), '.'),
|
||||
'-I' + join_paths(meson.current_source_dir(), '../../'),
|
||||
'-I' + join_paths(meson.current_source_dir(), 'shaders'),
|
||||
|
|
|
|||
|
|
@ -107,6 +107,12 @@ main(int argc, char **argv)
|
|||
util_dynarray_append(option ? &clang_args : &input_files, char *, arg);
|
||||
}
|
||||
|
||||
/* Set the OpenCL standard to CL 2.0, this enables everything at a frontend
|
||||
* level. See comment below about driver support.
|
||||
*/
|
||||
util_dynarray_append(&clang_args, char *, "-cl-std=cl2.0");
|
||||
util_dynarray_append(&clang_args, char *, "-D__OPENCL_VERSION__=200");
|
||||
|
||||
if (util_dynarray_num_elements(&input_files, char *) == 0) {
|
||||
fprintf(stderr, "No input file(s).\n");
|
||||
print_usage(argv[0], stderr);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ foreach gen : intel_shaders_gens
|
|||
command : [
|
||||
prog_mesa_clc,
|
||||
intel_shader_files, '-o', '@OUTPUT@', '--',
|
||||
'-cl-std=cl2.0', '-D__OPENCL_VERSION__=200',
|
||||
'-DNDEBUG=1',
|
||||
'-DGFX_VERx10=@0@'.format(gen[0]),
|
||||
'-I' + join_paths(meson.current_source_dir(), '.'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue