mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 03:40:23 +01:00
i965: Ensure that texture validation is skipped for immutable textures.
If we were to relayout the miptree, we'd break any views that are sharing it. (Simplified based on suggestions from Eric) Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
a98b675945
commit
93fa16bdd1
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,11 @@ intel_finalize_mipmap_tree(struct brw_context *brw, GLuint unit)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* Immutable textures should not get this far -- they should have been
|
||||
* created in a validated state, and nothing can invalidate them.
|
||||
*/
|
||||
assert(!tObj->Immutable);
|
||||
|
||||
firstImage = intel_texture_image(tObj->Image[0][tObj->BaseLevel]);
|
||||
|
||||
/* Check tree can hold all active levels. Check tree matches
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue