diff options
author | Dave Airlie <[email protected]> | 2019-06-26 15:57:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-07-07 16:24:12 +1000 |
commit | df46b3d196eb4f4f55efa6e1da4398c0e1dbc923 (patch) | |
tree | e8812328561f92cadd2f67c7d28ba3e374c536db /src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | d8fb66a3e1ffae8e4ef4a31ee961f74d44486a19 (diff) |
llvmpipe: add support for shader buffer binding.
This add support for setting shader buffers and passing them
to draw or binding them to the fragment shader jit.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index 4b55fd922c8..9c8dde5b6ae 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -49,7 +49,7 @@ #define LP_SETUP_NEW_BLEND_COLOR 0x04 #define LP_SETUP_NEW_SCISSOR 0x08 #define LP_SETUP_NEW_VIEWPORTS 0x10 - +#define LP_SETUP_NEW_SSBOS 0x20 struct lp_setup_variant; @@ -143,6 +143,11 @@ struct lp_setup_context const void *stored_data; } constants[LP_MAX_TGSI_CONST_BUFFERS]; + /** fragment shader buffers */ + struct { + struct pipe_shader_buffer current; + } ssbos[LP_MAX_TGSI_SHADER_BUFFERS]; + struct { struct pipe_blend_color current; uint8_t *stored; |