intel: silence unused var warnings in release builds
v2: Use ASSERTED Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4162 Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8681>
This commit is contained in:

committed by
Marge Bot

parent
c196ffaca6
commit
65f7b93435
@@ -5488,7 +5488,7 @@ static void
|
||||
setup_surface_descriptors(const fs_builder &bld, fs_inst *inst, uint32_t desc,
|
||||
const fs_reg &surface, const fs_reg &surface_handle)
|
||||
{
|
||||
const gen_device_info *devinfo = bld.shader->devinfo;
|
||||
const ASSERTED gen_device_info *devinfo = bld.shader->devinfo;
|
||||
|
||||
/* We must have exactly one of surface and surface_handle */
|
||||
assert((surface.file == BAD_FILE) != (surface_handle.file == BAD_FILE));
|
||||
|
@@ -553,7 +553,7 @@ add_shadow_surface(struct anv_device *device,
|
||||
uint32_t stride,
|
||||
VkImageUsageFlags vk_plane_usage)
|
||||
{
|
||||
bool ok;
|
||||
ASSERTED bool ok;
|
||||
|
||||
ok = isl_surf_init(&device->isl_dev,
|
||||
&image->planes[plane].shadow_surface.isl,
|
||||
|
@@ -3221,7 +3221,7 @@ cmd_buffer_emit_push_constant_all(struct anv_cmd_buffer *cmd_buffer,
|
||||
const struct anv_cmd_graphics_state *gfx_state = &cmd_buffer->state.gfx;
|
||||
const struct anv_graphics_pipeline *pipeline = gfx_state->pipeline;
|
||||
|
||||
static const uint32_t push_constant_opcodes[] = {
|
||||
static const UNUSED uint32_t push_constant_opcodes[] = {
|
||||
[MESA_SHADER_VERTEX] = 21,
|
||||
[MESA_SHADER_TESS_CTRL] = 25, /* HS */
|
||||
[MESA_SHADER_TESS_EVAL] = 26, /* DS */
|
||||
|
@@ -2354,7 +2354,7 @@ emit_compute_state(struct anv_compute_pipeline *pipeline,
|
||||
|
||||
const uint32_t subslices = MAX2(device->physical->subslice_total, 1);
|
||||
|
||||
const struct anv_shader_bin *cs_bin = pipeline->cs;
|
||||
const UNUSED struct anv_shader_bin *cs_bin = pipeline->cs;
|
||||
const struct gen_device_info *devinfo = &device->info;
|
||||
|
||||
anv_batch_emit(&pipeline->base.batch, GENX(CFE_STATE), cfe) {
|
||||
|
Reference in New Issue
Block a user