diff options
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/gen3_render.c | 6 | ||||
-rw-r--r-- | src/sna/gen4_render.c | 6 | ||||
-rw-r--r-- | src/sna/gen5_render.c | 6 | ||||
-rw-r--r-- | src/sna/gen6_render.c | 6 | ||||
-rw-r--r-- | src/sna/gen7_render.c | 6 |
5 files changed, 5 insertions, 25 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index b66e0e0e..63bbd766 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -1678,12 +1678,8 @@ static void gen3_vertex_close(struct sna *sna) __FUNCTION__, sna->render.vertex_used, sna->render.vertex_size, sna->render.vbo ? sna->render.vbo->handle : 0)); - if (sna->render.vertex_used == 0) { - assert(sna->render.vbo == NULL); - assert(sna->render.vertices == sna->render.vertex_data); - assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data)); + if (sna->render.vertex_used == 0) return; - } bo = sna->render.vbo; if (bo) { diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 6379a186..cd4ca361 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -426,12 +426,8 @@ static void gen4_vertex_close(struct sna *sna) DBG(("%s: used=%d, vbo active? %d\n", __FUNCTION__, sna->render.vertex_used, sna->render.vbo != NULL)); - if (!sna->render.vertex_used) { - assert(sna->render.vbo == NULL); - assert(sna->render.vertices == sna->render.vertex_data); - assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data)); + if (!sna->render.vertex_used) return; - } bo = sna->render.vbo; if (bo) { diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index 7d424aa5..27ba04d4 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -418,12 +418,8 @@ static void gen5_vertex_close(struct sna *sna) DBG(("%s: used=%d, vbo active? %d\n", __FUNCTION__, sna->render.vertex_used, sna->render.vbo != NULL)); - if (!sna->render.vertex_used) { - assert(sna->render.vbo == NULL); - assert(sna->render.vertices == sna->render.vertex_data); - assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data)); + if (!sna->render.vertex_used) return; - } bo = sna->render.vbo; if (bo) { diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 896693c7..ecc8dfb7 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -997,12 +997,8 @@ static void gen6_vertex_close(struct sna *sna) DBG(("%s: used=%d, vbo active? %d\n", __FUNCTION__, sna->render.vertex_used, sna->render.vbo != NULL)); - if (!sna->render.vertex_used) { - assert(sna->render.vbo == NULL); - assert(sna->render.vertices == sna->render.vertex_data); - assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data)); + if (!sna->render.vertex_used) return; - } bo = sna->render.vbo; if (bo) { diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index ea9b01a1..6cf75ebe 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -1153,12 +1153,8 @@ static void gen7_vertex_close(struct sna *sna) DBG(("%s: used=%d, vbo active? %d\n", __FUNCTION__, sna->render.vertex_used, sna->render.vbo != NULL)); - if (!sna->render.vertex_used) { - assert(sna->render.vbo == NULL); - assert(sna->render.vertices == sna->render.vertex_data); - assert(sna->render.vertex_size == ARRAY_SIZE(sna->render.vertex_data)); + if (!sna->render.vertex_used) return; - } bo = sna->render.vbo; if (bo) { |