Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:wolfi323:branches:openSUSE:Leap:15.4
Mesa
243475b96cc83e71019eee7789dcb4f1d4a432c0.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 243475b96cc83e71019eee7789dcb4f1d4a432c0.diff of Package Mesa
diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c index eb13f89dd160c5dcaf2e6c2c758448280a2cdcba..a8815c4ba77e1d1ee3eb7bba9e5006fcd40b070d 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.c +++ b/src/gallium/auxiliary/vl/vl_video_buffer.c @@ -219,6 +219,7 @@ static struct pipe_sampler_view ** vl_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) { struct vl_video_buffer *buf = (struct vl_video_buffer *)buffer; + unsigned num_planes = util_format_get_num_planes(buffer->buffer_format); struct pipe_sampler_view sv_templ; struct pipe_context *pipe; unsigned i; @@ -227,7 +228,7 @@ vl_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) pipe = buf->base.context; - for (i = 0; i < buf->num_planes; ++i ) { + for (i = 0; i < num_planes; ++i ) { if (!buf->sampler_view_planes[i]) { memset(&sv_templ, 0, sizeof(sv_templ)); u_sampler_view_default_template(&sv_templ, buf->resources[i], buf->resources[i]->format); @@ -244,7 +245,7 @@ vl_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) return buf->sampler_view_planes; error: - for (i = 0; i < buf->num_planes; ++i ) + for (i = 0; i < num_planes; ++i ) pipe_sampler_view_reference(&buf->sampler_view_planes[i], NULL); return NULL;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor