[Mesa-dev] [PATCH 12/31] radv/ac: propogate as_es flag into shader info from key.
Dave Airlie
airlied at gmail.com
Fri Jan 20 03:03:08 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This just places the flag into the shader info so we can use it from
the driver after we create the shader.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/common/ac_nir_to_llvm.c | 3 +++
src/amd/common/ac_nir_to_llvm.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 1079c6f..54bce97 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -4756,6 +4756,9 @@ void ac_compile_nir_shader(LLVMTargetMachineRef tm,
shader_info->gs.output_prim = nir->info->gs.output_primitive;
shader_info->gs.invocations = nir->info->gs.invocations;
break;
+ case MESA_SHADER_VERTEX:
+ shader_info->vs.as_es = options->key.vs.as_es;
+ break;
default:
break;
}
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h
index c719d43..dda27be 100644
--- a/src/amd/common/ac_nir_to_llvm.h
+++ b/src/amd/common/ac_nir_to_llvm.h
@@ -101,6 +101,7 @@ struct ac_shader_variant_info {
bool writes_pointsize;
bool writes_layer;
bool writes_viewport_index;
+ bool as_es;
uint8_t clip_dist_mask;
uint8_t cull_dist_mask;
} vs;
--
2.9.3
More information about the mesa-dev
mailing list