[Mesa-dev] [PATCH] nouveau: 3d textures are unsupported, limit 3d levels to 1
Francisco Jerez
currojerez at riseup.net
Mon Oct 6 00:54:44 PDT 2014
Ilia Mirkin <imirkin at alum.mit.edu> writes:
> Ideally there would be a swrast fallback, but the driver isn't ready for
> that. This should avoid crashes if someone tries to use 3d textures
> though.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>
> Weaseling out of things is what separates us from the animals... except the
> weasel.
>
Heh, looks OK to me for now until we have a proper solution:
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> src/mesa/drivers/dri/nouveau/nouveau_context.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c
> index 5be5ec5..e1bb7e8 100644
> --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c
> +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c
> @@ -189,6 +189,9 @@ nouveau_context_init(struct gl_context *ctx, gl_api api,
> ctx->Extensions.NV_texture_env_combine4 = true;
> ctx->Const.MaxColorAttachments = 1;
>
> + /* This effectively disables 3D textures */
> + ctx->Const.Max3DTextureLevels = 1;
> +
> return GL_TRUE;
> }
>
> --
> 2.0.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141006/7f5c5995/attachment.sig>
More information about the mesa-dev
mailing list