iris: make surface states for cbufs

This commit is contained in:
Kenneth Graunke
2018-06-06 14:37:38 -07:00
parent 4e007dbb30
commit 90046b43cc
2 changed files with 35 additions and 5 deletions

View File

@@ -170,8 +170,13 @@ struct iris_compiled_shader {
};
struct iris_const_buffer {
struct pipe_resource *res;
/** The resource and offset for the actual constant data */
struct pipe_resource *resource;
unsigned offset;
/** The resource and offset for the SURFACE_STATE for pull access. */
struct pipe_resource *surface_state_resource;
unsigned surface_state_offset;
};
struct iris_shader_state {