nir: add streams to nir data

This will be used by gallium drivers.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri
2017-11-07 13:56:08 +11:00
parent 3a71eac783
commit 8c9f3f2c46
2 changed files with 9 additions and 0 deletions

View File

@@ -322,6 +322,7 @@ nir_visitor::visit(ir_variable *ir)
var->data.patch = ir->data.patch; var->data.patch = ir->data.patch;
var->data.invariant = ir->data.invariant; var->data.invariant = ir->data.invariant;
var->data.location = ir->data.location; var->data.location = ir->data.location;
var->data.stream = ir->data.stream;
var->data.compact = false; var->data.compact = false;
switch(ir->data.mode) { switch(ir->data.mode) {

View File

@@ -274,6 +274,14 @@ typedef struct nir_variable {
*/ */
unsigned int driver_location; 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. * output index for dual source blending.
*/ */