Browse Source

radv: add radv_create_shaders() to radv_shader.h

In a follwing commit we want to be able to call this for secure
compiles from radv_device.c

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
tags/19.3-branchpoint
Timothy Arceri 7 years ago
parent
commit
2d2b113e86
2 changed files with 10 additions and 1 deletions
  1. 0
    1
      src/amd/vulkan/radv_pipeline.c
  2. 10
    0
      src/amd/vulkan/radv_shader.h

+ 0
- 1
src/amd/vulkan/radv_pipeline.c View File

@@ -2563,7 +2563,6 @@ bool radv_aco_supported_stage(gl_shader_stage stage, bool has_gs, bool has_ts)
stage == MESA_SHADER_COMPUTE;
}

static
void radv_create_shaders(struct radv_pipeline *pipeline,
struct radv_device *device,
struct radv_pipeline_cache *cache,

+ 10
- 0
src/amd/vulkan/radv_shader.h View File

@@ -407,6 +407,16 @@ radv_alloc_shader_memory(struct radv_device *device,
void
radv_destroy_shader_slabs(struct radv_device *device);

void
radv_create_shaders(struct radv_pipeline *pipeline,
struct radv_device *device,
struct radv_pipeline_cache *cache,
const struct radv_pipeline_key *key,
const VkPipelineShaderStageCreateInfo **pStages,
const VkPipelineCreateFlags flags,
VkPipelineCreationFeedbackEXT *pipeline_feedback,
VkPipelineCreationFeedbackEXT **stage_feedbacks);

struct radv_shader_variant *
radv_shader_variant_create(struct radv_device *device,
const struct radv_shader_binary *binary,

Loading…
Cancel
Save