i965: Drop debug check for knowing the size of a type.
authorEric Anholt <eric@anholt.net>
Wed, 23 Jan 2013 01:36:53 +0000 (17:36 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 25 Jan 2013 17:40:39 +0000 (09:40 -0800)
This was added in b93684f5f311f89c965960ab42bfea71a397b180, but there's
no need for it -- get_size has to succeed, and it has an assert for us
in debug builds.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index 31282ddddcb964002b780ffebfdccf6b30ff1540..43848f7dcbc1dd2a8832fda749046460f83adbc1 100644 (file)
@@ -449,8 +449,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
       struct brw_vertex_element *input = &brw->vb.inputs[i];
 
       vs_inputs &= ~BITFIELD64_BIT(i);
-      if (input->glarray->Size && get_size(input->glarray->Type))
-         brw->vb.enabled[brw->vb.nr_enabled++] = input;
+      brw->vb.enabled[brw->vb.nr_enabled++] = input;
    }
 
    if (brw->vb.nr_enabled == 0)