summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_zscan.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-05-05 20:09:34 +0200
committerChristian König <[email protected]>2011-05-05 20:09:34 +0200
commit6ad846ee78d9d8ba93dcecdefbf89f2b981333ef (patch)
tree2b5ffa788ec84fdd06546eff579854e897ce3192 /src/gallium/auxiliary/vl/vl_zscan.h
parent352bfb525ab4858ac1a5710cc8d629764cf6bd72 (diff)
[g3dvl] move zscan into shaders
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_zscan.h')
-rw-r--r--src/gallium/auxiliary/vl/vl_zscan.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/vl/vl_zscan.h b/src/gallium/auxiliary/vl/vl_zscan.h
index 28b990ca83b..ccc6bc4a8a1 100644
--- a/src/gallium/auxiliary/vl/vl_zscan.h
+++ b/src/gallium/auxiliary/vl/vl_zscan.h
@@ -54,7 +54,6 @@ struct vl_zscan
void *vs, *fs;
- struct pipe_sampler_view *scan;
struct pipe_sampler_view *quant;
};
@@ -65,20 +64,16 @@ struct vl_zscan_buffer
struct pipe_viewport_state viewport;
struct pipe_framebuffer_state fb_state;
- struct pipe_sampler_view *src, *scan, *quant;
+ struct pipe_sampler_view *src, *layout, *quant;
struct pipe_surface *dst;
};
-struct pipe_sampler_view *
-vl_zscan_linear(struct pipe_context *pipe, unsigned blocks_per_line);
+extern const int vl_zscan_linear[];
+extern const int vl_zscan_normal[];
+extern const int vl_zscan_alternate[];
-#if 0
struct pipe_sampler_view *
-vl_zscan_normal(struct pipe_context *pipe, unsigned blocks_per_line);
-
-struct pipe_sampler_view *
-vl_zscan_alternate(struct pipe_context *pipe, unsigned blocks_per_line);
-#endif
+vl_zscan_layout(struct pipe_context *pipe, const int layout[64], unsigned blocks_per_line);
bool
vl_zscan_init(struct vl_zscan *zscan, struct pipe_context *pipe,
@@ -87,9 +82,6 @@ vl_zscan_init(struct vl_zscan *zscan, struct pipe_context *pipe,
unsigned num_channels);
void
-vl_zscan_set_layout(struct vl_zscan *zscan, struct pipe_sampler_view *layout);
-
-void
vl_zscan_cleanup(struct vl_zscan *zscan);
#if 0
@@ -105,6 +97,9 @@ void
vl_zscan_cleanup_buffer(struct vl_zscan_buffer *buffer);
void
+vl_zscan_set_layout(struct vl_zscan_buffer *buffer, struct pipe_sampler_view *layout);
+
+void
vl_zscan_render(struct vl_zscan_buffer *buffer, unsigned num_instances);
#endif