diff options
author | Marek Olšák <[email protected]> | 2015-02-01 16:58:08 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-02-04 14:34:13 +0100 |
commit | b142dd2f2474af6479016d5fb5e87b0da015115c (patch) | |
tree | 9b989c89252593ae900236b22eecf8b6cec6ab51 /src/gallium/drivers/radeonsi/si_descriptors.c | |
parent | afe1e6acdd7f430b0be4f0bd5af3b1c0dbf6e453 (diff) |
radeonsi: move the buffer descriptor to the end of the image descriptor
This will allow supporting NULL textures.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_descriptors.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 573787a991a..15b4da1e8c1 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -1063,7 +1063,7 @@ static void si_invalidate_buffer(struct pipe_context *ctx, struct pipe_resource /* Texture buffers - update virtual addresses in sampler view descriptors. */ LIST_FOR_EACH_ENTRY(view, &sctx->b.texture_buffers, list) { if (view->base.texture == buf) { - si_desc_reset_buffer_offset(ctx, view->state, old_va, buf); + si_desc_reset_buffer_offset(ctx, &view->state[4], old_va, buf); } } /* Texture buffers - update bindings. */ |