radv: for secure compile exit early from radv_shader_variant_create()
We don't have permission to be creating shared memory etc. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -973,7 +973,14 @@ radv_shader_variant_create(struct radv_device *device,
|
||||
variant->info = binary->info;
|
||||
radv_postprocess_config(device->physical_device, &config, &binary->info,
|
||||
binary->stage, &variant->config);
|
||||
|
||||
|
||||
if (radv_device_use_secure_compile(device->instance)) {
|
||||
if (binary->type == RADV_BINARY_TYPE_RTLD)
|
||||
ac_rtld_close(&rtld_binary);
|
||||
|
||||
return variant;
|
||||
}
|
||||
|
||||
void *dest_ptr = radv_alloc_shader_memory(device, variant);
|
||||
|
||||
if (binary->type == RADV_BINARY_TYPE_RTLD) {
|
||||
|
Reference in New Issue
Block a user