summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-19 21:44:24 +0100
committerChristoph Bumiller <[email protected]>2011-12-15 18:50:44 +0100
commit4f4a1be2009863ea34a69b22f58aa1ca08cd710f (patch)
tree48eb1c6819340fb06c92b5ccd6d069e3c90671ab /src/gallium/drivers/softpipe
parent14bb957b996dcc5392b8fa589bd3ffa5c55cb6b4 (diff)
gallium: disable stream output in drivers that support it
I am going to make interface changes and I don't want to break compilation.
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r--src/gallium/drivers/softpipe/sp_context.c2
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c2
-rw-r--r--src/gallium/drivers/softpipe/sp_state_so.c7
3 files changed, 9 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c
index 3a83e5870dc..a7206000ddc 100644
--- a/src/gallium/drivers/softpipe/sp_context.c
+++ b/src/gallium/drivers/softpipe/sp_context.c
@@ -257,7 +257,7 @@ softpipe_create_context( struct pipe_screen *screen,
softpipe->pipe.set_framebuffer_state = softpipe_set_framebuffer_state;
softpipe->pipe.draw_vbo = softpipe_draw_vbo;
- softpipe->pipe.draw_stream_output = softpipe_draw_stream_output;
+ /* XXX softpipe->pipe.draw_stream_output = softpipe_draw_stream_output; */
softpipe->pipe.clear = softpipe_clear;
softpipe->pipe.flush = softpipe_flush_wrapped;
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 7a09be7cfa0..ef98f25c477 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -106,7 +106,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER:
return 1;
case PIPE_CAP_STREAM_OUTPUT:
- return 1;
+ return 0;
case PIPE_CAP_PRIMITIVE_RESTART:
return 1;
case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
diff --git a/src/gallium/drivers/softpipe/sp_state_so.c b/src/gallium/drivers/softpipe/sp_state_so.c
index ddfa3ef765a..40e563457d9 100644
--- a/src/gallium/drivers/softpipe/sp_state_so.c
+++ b/src/gallium/drivers/softpipe/sp_state_so.c
@@ -131,10 +131,17 @@ softpipe_set_stream_output_buffers(struct pipe_context *pipe,
void
softpipe_init_streamout_funcs(struct pipe_context *pipe)
{
+#if 0
pipe->create_stream_output_state = softpipe_create_stream_output_state;
pipe->bind_stream_output_state = softpipe_bind_stream_output_state;
pipe->delete_stream_output_state = softpipe_delete_stream_output_state;
pipe->set_stream_output_buffers = softpipe_set_stream_output_buffers;
+#else
+ (void) softpipe_create_stream_output_state;
+ (void) softpipe_bind_stream_output_state;
+ (void) softpipe_delete_stream_output_state;
+ (void) softpipe_set_stream_output_buffers;
+#endif
}