search for: st_begin_transform_feedback

Displaying 6 results from an estimated 6 matches for "st_begin_transform_feedback".

2015 Jan 07
3
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...acker/st_cb_xformfb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index 8f75eda..5a12da4 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); if (bo) { + if (!bo->buffer) + /* If we capture transform feedback from n streams into (n-1) + * buffers we have to write to buffer (n-1)...
2015 Feb 14
2
[PATCH 1/2] st/mesa: treat resource-less xfb buffers as if they weren't there
...b_xformfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index 8f75eda..a2bd86a 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -122,7 +122,7 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, for (i = 0; i < max_num_targets; i++) { struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); - if (bo) { + if (bo && bo->buffer) { /* Check whether we need to recreate the target. */ i...
2015 Jan 12
2
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...sertions(+) >> >> diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c >> index 8f75eda..5a12da4 100644 >> --- a/src/mesa/state_tracker/st_cb_xformfb.c >> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, >> struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); >> >> if (bo) { >> + if (!bo->buffer) >> + /* If we capture transform feedback from n streams into (n-1) >> +...
2015 Jan 12
1
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...sa/state_tracker/st_cb_xformfb.c >>>> b/src/mesa/state_tracker/st_cb_xformfb.c >>>> index 8f75eda..5a12da4 100644 >>>> --- a/src/mesa/state_tracker/st_cb_xformfb.c >>>> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >>>> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, >>>> GLenum mode, >>>> struct st_buffer_object *bo = >>>> st_buffer_object(sobj->base.Buffers[i]); >>>> >>>> if (bo) { >>>> + if (!bo->buffer) >>>> +...
2015 Jan 11
0
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...t; 1 file changed, 5 insertions(+) > > diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c > index 8f75eda..5a12da4 100644 > --- a/src/mesa/state_tracker/st_cb_xformfb.c > +++ b/src/mesa/state_tracker/st_cb_xformfb.c > @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, GLenum mode, > struct st_buffer_object *bo = st_buffer_object(sobj->base.Buffers[i]); > > if (bo) { > + if (!bo->buffer) > + /* If we capture transform feedback from n streams into (n-1) > + * buffers we ha...
2015 Jan 12
0
[RFC] mesa/st: Avoid passing a NULL buffer to the drivers
...diff --git a/src/mesa/state_tracker/st_cb_xformfb.c >>> b/src/mesa/state_tracker/st_cb_xformfb.c >>> index 8f75eda..5a12da4 100644 >>> --- a/src/mesa/state_tracker/st_cb_xformfb.c >>> +++ b/src/mesa/state_tracker/st_cb_xformfb.c >>> @@ -123,6 +123,11 @@ st_begin_transform_feedback(struct gl_context *ctx, >>> GLenum mode, >>> struct st_buffer_object *bo = >>> st_buffer_object(sobj->base.Buffers[i]); >>> >>> if (bo) { >>> + if (!bo->buffer) >>> + /* If we capture transform f...