From: Łukasz Krotowski Date: Fri, 7 Jan 2011 23:46:38 +0000 (+0100) Subject: r300g: Remove invalid assertion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96d8a54716d96bd28f0c54a25ca6904fb4321a55;p=mesa.git r300g: Remove invalid assertion. Invalid after be1af4394e060677b7db6bbb8e3301e38a3363da (user buffer creation with width0 == ~0). Signed-off-by: Marek Olšák --- diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index b55262a9522..3a97b76a4c8 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1871,7 +1871,6 @@ static void r300_set_constant_buffer(struct pipe_context *pipe, if (shader == PIPE_SHADER_FRAGMENT || (shader == PIPE_SHADER_VERTEX && r300->screen->caps.has_tcl)) { - assert((buf->width0 % (4 * sizeof(float))) == 0); cbuf->ptr = mapped; }