Module: Mesa Branch: master Commit: 878b2b8964c23d3be72dc28ef1a9758927f53214 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=878b2b8964c23d3be72dc28ef1a9758927f53214
Author: Topi Pohjolainen <[email protected]> Date: Sun Jan 3 15:06:09 2016 +0200 i965/gen8: Remove dead assertion The assertion is inside a condition mandating num_samples > 1 and therefore the first half of the constraint is always met. The second half in turn would only be applicable for single sampled case and moreover it is trying to falsely check against surface type instead of format. Subsequent patches will introduce proper support for the lossless compression and dropping this here makes the patches a little simpler. Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Ben Widawsky <[email protected]> --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index 0df25d2..fc8f701 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -243,12 +243,6 @@ gen8_emit_texture_surface_state(struct brw_context *brw, */ if (brw->gen >= 9 || mt->num_samples == 1) assert(mt->halign == 16); - - if (brw->gen >= 9) { - assert(mt->num_samples > 1 || - brw_losslessly_compressible_format(brw, surf_type)); - } - } uint32_t *surf = allocate_surface_state(brw, surf_offset, surf_index); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
