From: Chris Forbes Date: Mon, 20 Jan 2014 07:18:19 +0000 (+1300) Subject: i965: Enable texture upload fast path with MinLevel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24f490fb37f5a5b3ab0098aac6e4f6144f4f7029;p=mesa.git i965: Enable texture upload fast path with MinLevel We'll still avoid MinLayer here since the fast path doesn't understand arrays at all, but it's straightforward to do levels. Signed-off-by: Chris Forbes Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke Acked-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c index 287b27b02a1..891a46d198f 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c +++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c @@ -589,7 +589,7 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx, return false; /* If this is a nontrivial texture view, let another path handle it instead. */ - if (texImage->TexObject->MinLevel || texImage->TexObject->MinLayer) + if (texImage->TexObject->MinLayer) return false; if (for_glTexImage)