summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-01-22 17:36:53 -0800
committerEric Anholt <[email protected]>2013-01-25 09:40:39 -0800
commit9aa02a205d886b27325428785a63be7f8b8ae5ec (patch)
treedc4193d4c5c8f74cdfdc9ccc36c7a0b8880aa2d6 /src/mesa
parent5ae3c207918e10282f53402ae276b31b2235c2dc (diff)
i965: Drop debug check for knowing the size of a type.
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 31282ddddcb..43848f7dcbc 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -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)