Commit 4401dde0 authored by Iago Toral's avatar Iago Toral Committed by Marge Bot

broadcom/compiler: rename QUNIFORM_GET_BUFFER_SIZE to QUNIFORM_GET_SSBO_SIZE

Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Part-of: <!6766>
parent 6f55abcb
......@@ -2197,7 +2197,7 @@ ntq_emit_intrinsic(struct v3d_compile *c, nir_intrinsic_instr *instr)
case nir_intrinsic_get_ssbo_size:
ntq_store_dest(c, &instr->dest, 0,
vir_uniform(c, QUNIFORM_GET_BUFFER_SIZE,
vir_uniform(c, QUNIFORM_GET_SSBO_SIZE,
nir_src_as_uint(instr->src[0])));
break;
......
......@@ -252,7 +252,7 @@ enum quniform_contents {
QUNIFORM_SSBO_OFFSET,
/* Returns the size of the SSBO or UBO given by the data value. */
QUNIFORM_GET_BUFFER_SIZE,
QUNIFORM_GET_SSBO_SIZE,
QUNIFORM_GET_UBO_SIZE,
/* Sizes (in pixels) of a shader image given by the data value. */
......
......@@ -118,7 +118,7 @@ vir_dump_uniform(enum quniform_contents contents,
fprintf(stderr, "ssbo[%d]", data);
break;
case QUNIFORM_GET_BUFFER_SIZE:
case QUNIFORM_GET_SSBO_SIZE:
fprintf(stderr, "ssbo_size[%d]", data);
break;
......
......@@ -215,7 +215,7 @@ write_ubo_ssbo_uniforms(struct v3dv_cmd_buffer *cmd_buffer,
assert(descriptor->buffer->mem);
assert(descriptor->buffer->mem->bo);
if (content == QUNIFORM_GET_BUFFER_SIZE ||
if (content == QUNIFORM_GET_SSBO_SIZE ||
content == QUNIFORM_GET_UBO_SIZE) {
cl_aligned_u32(uniforms, descriptor->range);
} else {
......@@ -376,7 +376,7 @@ v3dv_write_uniforms_wg_offsets(struct v3dv_cmd_buffer *cmd_buffer,
case QUNIFORM_SSBO_OFFSET:
case QUNIFORM_UBO_ADDR:
case QUNIFORM_GET_BUFFER_SIZE:
case QUNIFORM_GET_SSBO_SIZE:
case QUNIFORM_GET_UBO_SIZE:
write_ubo_ssbo_uniforms(cmd_buffer, pipeline, &uniforms,
uinfo->contents[i], data);
......
......@@ -352,7 +352,7 @@ v3d_write_uniforms(struct v3d_context *v3d, struct v3d_job *job,
break;
}
case QUNIFORM_GET_BUFFER_SIZE:
case QUNIFORM_GET_SSBO_SIZE:
cl_aligned_u32(&uniforms,
v3d->ssbo[stage].sb[data].buffer_size);
break;
......@@ -457,7 +457,7 @@ v3d_set_shader_uniform_dirty_flags(struct v3d_compiled_shader *shader)
break;
case QUNIFORM_SSBO_OFFSET:
case QUNIFORM_GET_BUFFER_SIZE:
case QUNIFORM_GET_SSBO_SIZE:
dirty |= VC5_DIRTY_SSBO;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment