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:
Dave Airlie 2020-10-07 16:03:59 +10:00
parent bd804c074f
commit a8bad2b71a

View file

@ -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);
}