diff options
author | Topi Pohjolainen <[email protected]> | 2016-01-03 15:06:09 +0200 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-02-10 09:11:34 +0200 |
commit | 878b2b8964c23d3be72dc28ef1a9758927f53214 (patch) | |
tree | 3fb3486143adbd5fd28ae305a728d830ed6f1fd2 /src/mesa | |
parent | 3c432d48bfe8b3d3326c16aed191fa80a5400963 (diff) |
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]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_surface_state.c | 6 |
1 files changed, 0 insertions, 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 0df25d2557c..fc8f701a24c 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); |