mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
clover: add 3.0 program properties
the real IL code will rewrite this Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7642>
This commit is contained in:
parent
bd804c074f
commit
a8bad2b71a
1 changed files with 13 additions and 0 deletions
|
|
@ -461,6 +461,15 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
|
|||
}, std::string(), prog.symbols());
|
||||
break;
|
||||
|
||||
case CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT:
|
||||
case CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT:
|
||||
buf.as_scalar<cl_bool>() = CL_FALSE;
|
||||
break;
|
||||
|
||||
case CL_PROGRAM_IL:
|
||||
if (r_size)
|
||||
*r_size = 0;
|
||||
break;
|
||||
default:
|
||||
throw error(CL_INVALID_VALUE);
|
||||
}
|
||||
|
|
@ -499,6 +508,10 @@ clGetProgramBuildInfo(cl_program d_prog, cl_device_id d_dev,
|
|||
buf.as_scalar<cl_program_binary_type>() = prog.build(dev).binary_type();
|
||||
break;
|
||||
|
||||
case CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE:
|
||||
buf.as_scalar<size_t>() = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw error(CL_INVALID_VALUE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue