diff options
author | Christian König <[email protected]> | 2010-11-23 22:43:29 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2010-11-23 22:43:29 +0100 |
commit | 5a8078486a013152d150a4524ebfab929eefe6c4 (patch) | |
tree | 0e6ac8b14e692a3cb90563eddc0f97d64ca46a4c /src/gallium | |
parent | 58d04f816c00c6829975d0e797cb76eca3943e7d (diff) |
[g3dvl] remove invalid use of assert
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_idct.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c | 36 |
2 files changed, 27 insertions, 17 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.c b/src/gallium/auxiliary/vl/vl_idct.c index d6f065750f0..1cc4c470ae5 100644 --- a/src/gallium/auxiliary/vl/vl_idct.c +++ b/src/gallium/auxiliary/vl/vl_idct.c @@ -338,10 +338,10 @@ xfer_buffers_unmap(struct vl_idct *idct) static bool init_shaders(struct vl_idct *idct) { - assert(idct->vs = create_vert_shader(idct)); - assert(idct->transpose_fs = create_transpose_frag_shader(idct)); - assert(idct->matrix_fs = create_matrix_frag_shader(idct)); - assert(idct->eb_fs = create_empty_block_frag_shader(idct)); + idct->vs = create_vert_shader(idct); + idct->transpose_fs = create_transpose_frag_shader(idct); + idct->matrix_fs = create_matrix_frag_shader(idct); + idct->eb_fs = create_empty_block_frag_shader(idct); return idct->vs != NULL && diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c index 32728413700..8099929b8b0 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c @@ -599,20 +599,30 @@ init_shaders(struct vl_mpeg12_mc_renderer *r) { assert(r); - assert(r->i_vs = create_vert_shader(r, 0, 0)); - assert(r->i_fs = create_intra_frag_shader(r)); + r->i_vs = create_vert_shader(r, 0, 0); + r->i_fs = create_intra_frag_shader(r); - assert(r->p_vs[0] = create_vert_shader(r, 1, 1)); - assert(r->p_vs[1] = create_vert_shader(r, 1, 2)); - assert(r->p_fs[0] = create_frame_pred_frag_shader(r)); - assert(r->p_fs[1] = create_field_pred_frag_shader(r)); - - assert(r->b_vs[0] = create_vert_shader(r, 2, 1)); - assert(r->b_vs[1] = create_vert_shader(r, 2, 2)); - assert(r->b_fs[0] = create_frame_bi_pred_frag_shader(r)); - assert(r->b_fs[1] = create_field_bi_pred_frag_shader(r)); - - return true; + r->p_vs[0] = create_vert_shader(r, 1, 1); + r->p_vs[1] = create_vert_shader(r, 1, 2); + r->p_fs[0] = create_frame_pred_frag_shader(r); + r->p_fs[1] = create_field_pred_frag_shader(r); + + r->b_vs[0] = create_vert_shader(r, 2, 1); + r->b_vs[1] = create_vert_shader(r, 2, 2); + r->b_fs[0] = create_frame_bi_pred_frag_shader(r); + r->b_fs[1] = create_field_bi_pred_frag_shader(r); + + return + r->i_vs != NULL && + r->i_fs != NULL && + r->p_vs[0] != NULL && + r->p_vs[1] != NULL && + r->p_fs[0] != NULL && + r->p_fs[1] != NULL && + r->b_vs[0] != NULL && + r->b_vs[1] != NULL && + r->b_fs[0] != NULL && + r->b_fs[1] != NULL; } static void |