diff options
author | Ilia Mirkin <[email protected]> | 2013-08-10 03:49:21 -0400 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2013-08-15 15:15:02 +0200 |
commit | 8975f83402e3f5915f3f1a27599c24d908b7706d (patch) | |
tree | 3fd39a978567a52540a6ee1f5884435b99df3df7 /src/gallium/drivers/nouveau/nouveau_video.h | |
parent | 14ee790df77c810f187860a8d51096173ff39fcf (diff) |
nouveau: fix number of surfaces in video buffer, use defines
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_video.h')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_video.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_video.h b/src/gallium/drivers/nouveau/nouveau_video.h index 1d6ced035fb..be537582eac 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.h +++ b/src/gallium/drivers/nouveau/nouveau_video.h @@ -10,10 +10,10 @@ struct nouveau_video_buffer { struct pipe_video_buffer base; unsigned num_planes; - struct pipe_resource *resources[3]; - struct pipe_sampler_view *sampler_view_planes[3]; - struct pipe_sampler_view *sampler_view_components[3]; - struct pipe_surface *surfaces[3]; + struct pipe_resource *resources[VL_NUM_COMPONENTS]; + struct pipe_sampler_view *sampler_view_planes[VL_NUM_COMPONENTS]; + struct pipe_sampler_view *sampler_view_components[VL_NUM_COMPONENTS]; + struct pipe_surface *surfaces[VL_NUM_COMPONENTS * 2]; }; struct nouveau_decoder { |