Module: Mesa Branch: master Commit: 8c9f3f2c46653a94be9ded38763f81da20183e08 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c9f3f2c46653a94be9ded38763f81da20183e08
Author: Timothy Arceri <[email protected]> Date: Tue Nov 7 13:56:08 2017 +1100 nir: add streams to nir data This will be used by gallium drivers. Reviewed-by: Marek Olšák <[email protected]> --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/nir/nir.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index caea2ea3b2..d327f52be6 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -322,6 +322,7 @@ nir_visitor::visit(ir_variable *ir) var->data.patch = ir->data.patch; var->data.invariant = ir->data.invariant; var->data.location = ir->data.location; + var->data.stream = ir->data.stream; var->data.compact = false; switch(ir->data.mode) { diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 6d28a8b322..c055d300b6 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -275,6 +275,14 @@ typedef struct nir_variable { unsigned int driver_location; /** + * Vertex stream output identifier. + * + * For packed outputs, bit 31 is set and bits [2*i+1,2*i] indicate the + * stream of the i-th component. + */ + unsigned stream; + + /** * output index for dual source blending. */ int index; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
