Pipeline Cache: Translate shaders when program cntl register is available

This commit is contained in:
Dr. Chat
2016-05-22 20:03:13 -05:00
parent d1b4d61b52
commit bd27835a3d
2 changed files with 59 additions and 39 deletions

View File

@@ -75,6 +75,7 @@ class PipelineCache {
// state.
VkPipeline GetPipeline(const RenderState* render_state, uint64_t hash_key);
bool TranslateShader(VulkanShader* shader, xenos::xe_gpu_program_cntl_t cntl);
void DumpShaderDisasmNV(const VkGraphicsPipelineCreateInfo& info);
// Gets a geometry shader used to emulate the given primitive type.
@@ -157,6 +158,7 @@ class PipelineCache {
struct UpdateShaderStagesRegisters {
PrimitiveType primitive_type;
uint32_t pa_su_sc_mode_cntl;
uint32_t sq_program_cntl;
VulkanShader* vertex_shader;
VulkanShader* pixel_shader;