summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_so.c7
-rw-r--r--src/gallium/drivers/nvc0/nvc0_state.c7
-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
5 files changed, 23 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_so.c b/src/gallium/drivers/llvmpipe/lp_state_so.c
index 30b17c98816..35de52c6c99 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_so.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_so.c
@@ -125,6 +125,7 @@ llvmpipe_set_stream_output_buffers(struct pipe_context *pipe,
void
llvmpipe_init_so_funcs(struct llvmpipe_context *llvmpipe)
{
+#if 0
llvmpipe->pipe.create_stream_output_state =
llvmpipe_create_stream_output_state;
llvmpipe->pipe.bind_stream_output_state =
@@ -134,4 +135,10 @@ llvmpipe_init_so_funcs(struct llvmpipe_context *llvmpipe)
llvmpipe->pipe.set_stream_output_buffers =
llvmpipe_set_stream_output_buffers;
+#else
+ (void) llvmpipe_create_stream_output_state;
+ (void) llvmpipe_bind_stream_output_state;
+ (void) llvmpipe_delete_stream_output_state;
+ (void) llvmpipe_set_stream_output_buffers;
+#endif
}
diff --git a/src/gallium/drivers/nvc0/nvc0_state.c b/src/gallium/drivers/nvc0/nvc0_state.c
index 1a37d045801..0d6952dd9b4 100644
--- a/src/gallium/drivers/nvc0/nvc0_state.c
+++ b/src/gallium/drivers/nvc0/nvc0_state.c
@@ -871,10 +871,17 @@ nvc0_init_state_functions(struct nvc0_context *nvc0)
pipe->set_vertex_buffers = nvc0_set_vertex_buffers;
pipe->set_index_buffer = nvc0_set_index_buffer;
+#if 0
pipe->create_stream_output_state = nvc0_tfb_state_create;
pipe->delete_stream_output_state = nvc0_tfb_state_delete;
pipe->bind_stream_output_state = nvc0_tfb_state_bind;
pipe->set_stream_output_buffers = nvc0_set_transform_feedback_buffers;
+#else
+ (void)nvc0_tfb_state_create;
+ (void)nvc0_tfb_state_delete;
+ (void)nvc0_tfb_state_bind;
+ (void)nvc0_set_transform_feedback_buffers;
+#endif
pipe->redefine_user_buffer = u_default_redefine_user_buffer;
}
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
}