Mesa (master): radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Apr 2 05:00:39 UTC 2018
Module: Mesa
Branch: master
Commit: 7aad5e15f61b20d994919ae5fc0aab4999ad4045
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7aad5e15f61b20d994919ae5fc0aab4999ad4045
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Feb 26 20:42:35 2018 +1100
radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_shader_nir.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c
index 994fee0b02..437eefc54d 100644
--- a/src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -244,6 +244,9 @@ void si_nir_scan_shader(const struct nir_shader *nir,
info->num_tokens = 2; /* indicate that the shader is non-empty */
info->num_instructions = 2;
+ info->properties[TGSI_PROPERTY_NEXT_SHADER] =
+ pipe_shader_type_from_mesa(nir->info.next_stage);
+
if (nir->info.stage == MESA_SHADER_TESS_CTRL) {
info->properties[TGSI_PROPERTY_TCS_VERTICES_OUT] =
nir->info.tess.tcs_vertices_out;
More information about the mesa-commit
mailing list