From: Ilia Mirkin Date: Mon, 1 Sep 2014 04:43:06 +0000 (-0400) Subject: nvc0: don't make 1d staging textures linear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=115d9a5525e74573ced9209063a1d4a551e6eaa4;p=mesa.git nvc0: don't make 1d staging textures linear Experimentally, the sampler doesn't appear to like these, neither as buffer nor as rect textures. So remove 1D from the list of texture types to make linear when used for staging. This fixes the OSD in mplayer for VDPAU. Signed-off-by: Ilia Mirkin Cc: "10.2 10.3" --- diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c b/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c index 2f3cba8b879..3baa752558c 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c @@ -261,7 +261,6 @@ nvc0_miptree_create(struct pipe_screen *pscreen, if (pt->usage == PIPE_USAGE_STAGING) { switch (pt->target) { - case PIPE_TEXTURE_1D: case PIPE_TEXTURE_2D: case PIPE_TEXTURE_RECT: if (pt->last_level == 0 &&