diff options
author | Marek Olšák <[email protected]> | 2015-07-05 14:48:33 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-16 16:52:20 +0200 |
commit | 05a12c53a308965aba1c00f0caf36d8e0f32e035 (patch) | |
tree | 7914bcae5a16fff973d438326b3cc9749de8d22b /src/gallium/drivers/nouveau/nvc0/nvc0_state.c | |
parent | b73bec0ecd43861337daf9663e242d2b44f36dbd (diff) |
gallium: add interface for writable shader images
PIPE_CAPs will be added some other time.
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nvc0_state.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c index 6b7a211e71b..337559c3be8 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c @@ -1125,13 +1125,15 @@ nvc0_set_compute_resources(struct pipe_context *pipe, } static void -nvc0_set_shader_resources(struct pipe_context *pipe, +nvc0_set_shader_images(struct pipe_context *pipe, unsigned start, unsigned nr, - struct pipe_surface **resources) + struct pipe_image_view **views) { - nvc0_bind_surfaces_range(nvc0_context(pipe), 0, start, nr, resources); +#if 0 + nvc0_bind_surfaces_range(nvc0_context(pipe), 0, start, nr, views); nvc0_context(pipe)->dirty |= NVC0_NEW_SURFACES; +#endif } static INLINE void @@ -1253,7 +1255,7 @@ nvc0_init_state_functions(struct nvc0_context *nvc0) pipe->set_global_binding = nvc0_set_global_bindings; pipe->set_compute_resources = nvc0_set_compute_resources; - pipe->set_shader_resources = nvc0_set_shader_resources; + pipe->set_shader_images = nvc0_set_shader_images; nvc0->sample_mask = ~0; nvc0->min_samples = 1; |