Commit a8bad2b7 authored by Dave Airlie's avatar Dave Airlie
Browse files

clover: add 3.0 program properties



the real IL code will rewrite this
Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Part-of: <mesa/mesa!7642>
parent bd804c07
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment