i965: Handle SYSTEM_VALUE_VERTEX_ID_ZERO_BASE
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Jun 2014 20:54:35 +0000 (13:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Sep 2014 18:05:08 +0000 (11:05 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp

index 64c72fd42245b4794b3ed72b2bef380d2f944715..6a1c049e1f91fe2cacf3ba3ed835589b6b62498a 100644 (file)
@@ -155,6 +155,7 @@ vec4_vs_visitor::make_reg_for_system_value(ir_variable *ir)
 
    switch (ir->data.location) {
    case SYSTEM_VALUE_VERTEX_ID:
+   case SYSTEM_VALUE_VERTEX_ID_ZERO_BASE:
       reg->writemask = WRITEMASK_X;
       break;
    case SYSTEM_VALUE_INSTANCE_ID: