I keep thinking it's the "upload from inside a BO" path when it's not.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5990>
}
static void
-fd3_emit_const_bo(struct fd_ringbuffer *ring, gl_shader_stage type,
+fd3_emit_const_ptrs(struct fd_ringbuffer *ring, gl_shader_stage type,
uint32_t regid, uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
uint32_t anum = align(num, 4);
}
static void
-emit_const_bo(struct fd_ringbuffer *ring,
+emit_const_ptrs(struct fd_ringbuffer *ring,
const struct ir3_shader_variant *v, uint32_t dst_offset,
uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
/* TODO inline this */
assert(dst_offset + num <= v->constlen * 4);
- fd3_emit_const_bo(ring, v->type, dst_offset, num, prscs, offsets);
+ fd3_emit_const_ptrs(ring, v->type, dst_offset, num, prscs, offsets);
}
#define VERT_TEX_OFF 0
}
static void
-fd4_emit_const_bo(struct fd_ringbuffer *ring, gl_shader_stage type,
+fd4_emit_const_ptrs(struct fd_ringbuffer *ring, gl_shader_stage type,
uint32_t regid, uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
uint32_t anum = align(num, 4);
}
static void
-emit_const_bo(struct fd_ringbuffer *ring,
+emit_const_ptrs(struct fd_ringbuffer *ring,
const struct ir3_shader_variant *v, uint32_t dst_offset,
uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
/* TODO inline this */
assert(dst_offset + num <= v->constlen * 4);
- fd4_emit_const_bo(ring, v->type, dst_offset, num, prscs, offsets);
+ fd4_emit_const_ptrs(ring, v->type, dst_offset, num, prscs, offsets);
}
static void
}
static void
-fd5_emit_const_bo(struct fd_ringbuffer *ring, gl_shader_stage type,
+fd5_emit_const_ptrs(struct fd_ringbuffer *ring, gl_shader_stage type,
uint32_t regid, uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
uint32_t anum = align(num, 2);
}
static void
-emit_const_bo(struct fd_ringbuffer *ring,
+emit_const_ptrs(struct fd_ringbuffer *ring,
const struct ir3_shader_variant *v, uint32_t dst_offset,
uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
/* TODO inline this */
assert(dst_offset + num <= v->constlen * 4);
- fd5_emit_const_bo(ring, v->type, dst_offset, num, prscs, offsets);
+ fd5_emit_const_ptrs(ring, v->type, dst_offset, num, prscs, offsets);
}
void
}
static void
-emit_const_bo(struct fd_ringbuffer *ring,
+emit_const_ptrs(struct fd_ringbuffer *ring,
const struct ir3_shader_variant *v, uint32_t dst_offset,
uint32_t num, struct pipe_resource **prscs, uint32_t *offsets)
{
uint32_t offset, uint32_t size,
const void *user_buffer, struct pipe_resource *buffer);
-static void emit_const_bo(struct fd_ringbuffer *ring,
+static void emit_const_ptrs(struct fd_ringbuffer *ring,
const struct ir3_shader_variant *v, uint32_t dst_offset,
uint32_t num, struct pipe_resource **prscs, uint32_t *offsets);
assert(offset * 4 + params <= v->constlen * 4);
- emit_const_bo(ring, v, offset * 4, params, prscs, offsets);
+ emit_const_ptrs(ring, v, offset * 4, params, prscs, offsets);
}
}
assert(offset * 4 + params <= v->constlen * 4);
- emit_const_bo(ring, v, offset * 4, params, prscs, offsets);
+ emit_const_ptrs(ring, v, offset * 4, params, prscs, offsets);
}
}