intel: add a couple of ASSERTED

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Eric Engestrom 2019-06-22 19:37:53 +01:00
parent abc226cf41
commit 7e2fe85a40
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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)