diff options
author | Eric Engestrom <[email protected]> | 2019-06-22 19:37:53 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-07-31 09:41:05 +0100 |
commit | 7e2fe85a4062e73e907e32e971b190410440d488 (patch) | |
tree | 287f068f72bd1c95aecf608d63206797f19ce62a /src/mesa | |
parent | abc226cf41574454c79477c217e60e8ff1fddfad (diff) |
intel: add a couple of ASSERTED
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) |