From: Eric Engestrom Date: Sat, 22 Jun 2019 18:37:53 +0000 (+0100) Subject: intel: add a couple of ASSERTED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e2fe85a4062e73e907e32e971b190410440d488;p=mesa.git intel: add a couple of ASSERTED Signed-off-by: Eric Engestrom Reviewed-by: Matt Turner --- diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c index 94ec56252ba..f9a281b7019 100644 --- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c @@ -732,7 +732,7 @@ lower_image_intrinsic(nir_intrinsic_instr *intrin, nir_builder *b = &state->builder; b->cursor = nir_before_instr(&intrin->instr); - const bool use_bindless = state->pdevice->has_bindless_images; + ASSERTED const bool use_bindless = state->pdevice->has_bindless_images; if (intrin->intrinsic == nir_intrinsic_image_deref_load_param_intel) { b->cursor = nir_instr_remove(&intrin->instr); diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index a3cfa765c0f..a4d3ab1294f 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -899,7 +899,7 @@ gen9_emit_preempt_wa(struct brw_context *brw, const struct _mesa_prim *prim) { bool object_preemption = true; - const struct gen_device_info *devinfo = &brw->screen->devinfo; + ASSERTED const struct gen_device_info *devinfo = &brw->screen->devinfo; /* Only apply these workarounds for gen9 */ assert(devinfo->gen == 9); diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index deb4ba5697d..ac9ee2dabf1 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -48,7 +48,7 @@ void brw_enable_obj_preemption(struct brw_context *brw, bool enable) { - const struct gen_device_info *devinfo = &brw->screen->devinfo; + ASSERTED const struct gen_device_info *devinfo = &brw->screen->devinfo; assert(devinfo->gen >= 9); if (enable == brw->object_preemption)