summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulien Isorce <j.isorce@samsung.com>2015-11-06 09:45:17 +0000
committerJulien Isorce <j.isorce@samsung.com>2015-11-06 17:33:16 +0000
commitbf6acbb2db4baaf18ae5a139142acf06e84d1b9c (patch)
treee4842d28cef4c46f3c58c3446d87981910f528d7 /src
parentbfc245e9ac430aab0b3c4c2a1b7767793f2854b0 (diff)
downloadexternal_mesa3d-bf6acbb2db4baaf18ae5a139142acf06e84d1b9c.zip
external_mesa3d-bf6acbb2db4baaf18ae5a139142acf06e84d1b9c.tar.gz
external_mesa3d-bf6acbb2db4baaf18ae5a139142acf06e84d1b9c.tar.bz2
st/va: properly use brackets in vlVaAcquireBufferHandle's switch
In "switch (mem_type)" the brackets were surrounding "case+default" instead of "case" only. Signed-off-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Christian K<C3><B6>nig <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/va/buffer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/va/buffer.c b/src/gallium/state_trackers/va/buffer.c
index 47bf35a..769305e 100644
--- a/src/gallium/state_trackers/va/buffer.c
+++ b/src/gallium/state_trackers/va/buffer.c
@@ -280,15 +280,14 @@ vlVaAcquireBufferHandle(VADriverContextP ctx, VABufferID buf_id,
buf_info->handle = (intptr_t)whandle.handle;
break;
+ }
default:
return VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE;
}
- }
-
- buf_info->type = buf->type;
- buf_info->mem_type = mem_type;
- buf_info->mem_size = buf->num_elements * buf->size;
+ buf_info->type = buf->type;
+ buf_info->mem_type = mem_type;
+ buf_info->mem_size = buf->num_elements * buf->size;
}
buf->export_refcount++;