From: Kenneth Graunke Date: Wed, 5 Dec 2018 08:57:07 +0000 (-0800) Subject: iris: Move iris_stream_output_target def to iris_context.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31357bae4bb9edb0940d10479f2b19e8deb84c04;p=mesa.git iris: Move iris_stream_output_target def to iris_context.h now that it doesn't have genxml --- diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 375d6002a78..01a2c0577b0 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -306,6 +306,16 @@ struct iris_shader_state { uint32_t bound_sampler_views; }; +/** + * Gallium CSO for stream output (transform feedback) targets. + */ +struct iris_stream_output_target { + struct pipe_stream_output_target base; + + /** Storage holding the offset where we're writing in the buffer */ + struct iris_state_ref offset; +}; + /** * Virtual table for generation-specific (genxml) function calls. */ diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index cf90cf7f812..809f9717580 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2502,16 +2502,6 @@ iris_bind_vertex_elements_state(struct pipe_context *ctx, void *state) ice->state.dirty |= IRIS_DIRTY_VERTEX_ELEMENTS; } -/** - * Gallium CSO for stream output (transform feedback) targets. - */ -struct iris_stream_output_target { - struct pipe_stream_output_target base; - - /** Storage holding the offset where we're writing in the buffer */ - struct iris_state_ref offset; -}; - /** * The pipe->create_stream_output_target() driver hook. *