summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-11-01 06:38:32 -0500
committerMarge Bot <eric+marge@anholt.net>2020-11-18 01:41:24 +0000
commitabe8ef862fe5649e16ceed76f60a2a364949b7b4 (patch)
tree441460615837c8b68c9145c436cecfd0644f5f73 /src/gallium/drivers/i915
parent1a717dca04657e1f5a621afbe1ae391e3da067d5 (diff)
gallium: make pipe_draw_indirect_info * a draw_vbo parameter
This removes 8 bytes from pipe_draw_info (think u_threaded_context) and a lot of info->indirect pointer indirections. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7441>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c
index f5116b80043..7750f906405 100644
--- a/src/gallium/drivers/i915/i915_context.c
+++ b/src/gallium/drivers/i915/i915_context.c
@@ -51,7 +51,8 @@ DEBUG_GET_ONCE_BOOL_OPTION(i915_no_vbuf, "I915_NO_VBUF", FALSE)
static void
-i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
+i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info,
+ const struct pipe_draw_indirect_info *indirect)
{
struct i915_context *i915 = i915_context(pipe);
struct draw_context *draw = i915->draw;
@@ -109,7 +110,7 @@ i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
/*
* Do the drawing
*/
- draw_vbo(i915->draw, info);
+ draw_vbo(i915->draw, info, NULL);
/*
* unmap vertex/index buffers