From 8abbdb8865890e1a39ebbbfae38422014f80072a Mon Sep 17 00:00:00 2001 From: Christian König Date: Wed, 25 Jan 2012 13:34:07 +0100 Subject: vl: rename VL_MAX_PLANES to VL_NUM_COMPONENTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- src/gallium/drivers/nouveau/nouveau_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nouveau/nouveau_video.c') diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c index cfbf857a969..06fbde46cc0 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.c +++ b/src/gallium/drivers/nouveau/nouveau_video.c @@ -685,7 +685,7 @@ nouveau_video_buffer_sampler_view_components(struct pipe_video_buffer *buffer) unsigned nr_components = util_format_get_nr_components(buf->resources[i]->format); for (j = 0; j < nr_components; ++j, ++component) { - assert(component < VL_MAX_PLANES); + assert(component < VL_NUM_COMPONENTS); if (!buf->sampler_view_components[component]) { memset(&sv_templ, 0, sizeof(sv_templ)); -- cgit v1.2.3