mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
intel: Don't tile textures so small that size is blown up by over 2x.
Noted on the mailing list for an app that puts each glyph for its text
into a separate texture.
(cherry picked from commit 453f0b1f24)
This commit is contained in:
parent
53557f1f34
commit
e48964a561
1 changed files with 3 additions and 4 deletions
|
|
@ -117,17 +117,16 @@ intel_miptree_create(struct intel_context *intel,
|
|||
GLboolean expect_accelerated_upload)
|
||||
{
|
||||
struct intel_mipmap_tree *mt;
|
||||
uint32_t tiling;
|
||||
uint32_t tiling = I915_TILING_NONE;
|
||||
|
||||
if (intel->use_texture_tiling && compress_byte == 0) {
|
||||
if (intel->gen >= 4 &&
|
||||
(base_format == GL_DEPTH_COMPONENT ||
|
||||
base_format == GL_DEPTH_STENCIL_EXT))
|
||||
tiling = I915_TILING_Y;
|
||||
else
|
||||
else if (width0 >= 64)
|
||||
tiling = I915_TILING_X;
|
||||
} else
|
||||
tiling = I915_TILING_NONE;
|
||||
}
|
||||
|
||||
mt = intel_miptree_create_internal(intel, target, internal_format,
|
||||
first_level, last_level, width0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue