Mesa (main): gallium/noop: implement shader buffers and shader images
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 9 13:14:25 UTC 2021
Module: Mesa
Branch: main
Commit: 870a3771af83ca8afe52cfb69fbefecd7c3a08ea
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=870a3771af83ca8afe52cfb69fbefecd7c3a08ea
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Aug 6 02:39:23 2021 -0400
gallium/noop: implement shader buffers and shader images
Acked-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12255>
---
src/gallium/auxiliary/driver_noop/noop_state.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/gallium/auxiliary/driver_noop/noop_state.c b/src/gallium/auxiliary/driver_noop/noop_state.c
index 858f816f7a8..2ea99756b4b 100644
--- a/src/gallium/auxiliary/driver_noop/noop_state.c
+++ b/src/gallium/auxiliary/driver_noop/noop_state.c
@@ -268,6 +268,22 @@ static void noop_set_window_rectangles(struct pipe_context *ctx,
{
}
+static void noop_set_shader_buffers(struct pipe_context *ctx,
+ enum pipe_shader_type shader,
+ unsigned start_slot, unsigned count,
+ const struct pipe_shader_buffer *buffers,
+ unsigned writable_bitmask)
+{
+}
+
+static void noop_set_shader_images(struct pipe_context *ctx,
+ enum pipe_shader_type shader,
+ unsigned start_slot, unsigned count,
+ unsigned unbind_num_trailing_slots,
+ const struct pipe_image_view *images)
+{
+}
+
void noop_init_state_functions(struct pipe_context *ctx);
void noop_init_state_functions(struct pipe_context *ctx)
@@ -312,6 +328,8 @@ void noop_init_state_functions(struct pipe_context *ctx)
ctx->set_constant_buffer = noop_set_constant_buffer;
ctx->set_inlinable_constants = noop_set_inlinable_constants;
ctx->set_sampler_views = noop_set_sampler_views;
+ ctx->set_shader_buffers = noop_set_shader_buffers;
+ ctx->set_shader_images = noop_set_shader_images;
ctx->set_framebuffer_state = noop_set_framebuffer_state;
ctx->set_polygon_stipple = noop_set_polygon_stipple;
ctx->set_sample_mask = noop_set_sample_mask;
More information about the mesa-commit
mailing list