Mesa (master): iris: no-op implement set_compute_resources

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 12 10:29:15 UTC 2020


Module: Mesa
Branch: master
Commit: 17280a8ef1a90b73add63682b0d956fd4383c6b1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=17280a8ef1a90b73add63682b0d956fd4383c6b1

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Oct 25 17:51:04 2018 -0500

iris: no-op implement set_compute_resources

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6280>

---

 src/gallium/drivers/iris/iris_state.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index ead1302e152..83fb9d8c39f 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2845,6 +2845,14 @@ iris_set_sampler_views(struct pipe_context *ctx,
                                    : IRIS_DIRTY_RENDER_RESOLVES_AND_FLUSHES;
 }
 
+static void
+iris_set_compute_resources(struct pipe_context *ctx,
+                           unsigned start, unsigned count,
+                           struct pipe_surface **resources)
+{
+   assert(count == 0);
+}
+
 /**
  * The pipe->set_tess_state() driver hook.
  */
@@ -7710,6 +7718,7 @@ genX(init_state)(struct iris_context *ice)
    ctx->set_shader_buffers = iris_set_shader_buffers;
    ctx->set_shader_images = iris_set_shader_images;
    ctx->set_sampler_views = iris_set_sampler_views;
+   ctx->set_compute_resources = iris_set_compute_resources;
    ctx->set_tess_state = iris_set_tess_state;
    ctx->set_framebuffer_state = iris_set_framebuffer_state;
    ctx->set_polygon_stipple = iris_set_polygon_stipple;



More information about the mesa-commit mailing list