mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
radv/gfx10: only compile the GS copy shader on-demand
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
5229f27f06
commit
9d7ead6f9b
1 changed files with 2 additions and 1 deletions
|
|
@ -2626,7 +2626,8 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
|
|||
|
||||
if(modules[MESA_SHADER_GEOMETRY]) {
|
||||
struct radv_shader_binary *gs_copy_binary = NULL;
|
||||
if (!pipeline->gs_copy_shader) {
|
||||
if (!pipeline->gs_copy_shader &&
|
||||
!radv_pipeline_has_ngg(pipeline)) {
|
||||
pipeline->gs_copy_shader = radv_create_gs_copy_shader(
|
||||
device, nir[MESA_SHADER_GEOMETRY], &gs_copy_binary,
|
||||
keys[MESA_SHADER_GEOMETRY].has_multiview_view_index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue