[Nouveau] [PATCH 2/2] drm/nouveau: Set tile mode

2015-05-19 Thread Alexandre Courbot
From: Ari Hirvonen ahirvo...@nvidia.com Add new NOUVEAU_GEM_SET_TILING ioctl to set correct tiling mode for imported dma-bufs. This ioctl is staging for now. Signed-off-by: Ari Hirvonen ahirvo...@nvidia.com [acour...@nvidia.com: carry upstream, fix style] Signed-off-by: Alexandre Courbot

[Nouveau] [PATCH 1/2] drm/nouveau: add staging module option

2015-05-19 Thread Alexandre Courbot
Add a module option allowing to enable staging/unstable APIs. This will allow us to experiment freely with experimental APIs for a while before setting them in stone. Signed-off-by: Alexandre Courbot acour...@nvidia.com --- drm/nouveau/nouveau_drm.c | 18 ++

[Nouveau] [PATCH 0/2] drm/nouveau: option for staging ioctls and new SET_TILING ioctl

2015-05-19 Thread Alexandre Courbot
This patchset proposes to introduce a staging module option to dynamically enable features (mostly ioctls) that are merged but may be refined before they are declared stable. The second patch illustrates the use of this staging option with the SET_TILING ioctl, which can be used to specify the

[Nouveau] [Bug 90513] Odd gray and red flicker in The Talos Principle on GK104

2015-05-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90513 --- Comment #2 from Ilia Mirkin imir...@alum.mit.edu --- Confirmed that I get redness coming in on that draw on my GK208, whereas it's fine on i965. There are a few awkward things, but nothing completely ridiculous: 1. 4096x4096 srgb dxt1/5

[Nouveau] [PATCH 2/2] nv04-nv40: don't attempt to do 32-bit shifts

2015-05-19 Thread Ilia Mirkin
A 32-bit shift is a no-op, which will also make the new planemask get or'd with ~0, thus negating the usefulness of the subsequent planemask != ~0 check. Only do this if it's a less-than-32-bit per pixel format, in which case it will have the desired effect of setting the high bits.

Re: [Nouveau] [PATCH 2/2] nv04-nv40: don't attempt to do 32-bit shifts

2015-05-19 Thread Martin Peres
On 19/05/15 23:28, Ilia Mirkin wrote: A 32-bit shift is a no-op, which will also make the new planemask get or'd with ~0, thus negating the usefulness of the subsequent planemask != ~0 check. Only do this if it's a less-than-32-bit per pixel format, in which case it will have the desired effect

Re: [Nouveau] [PATCH 2/2] nv04-nv40: don't attempt to do 32-bit shifts

2015-05-19 Thread Ilia Mirkin
On Tue, May 19, 2015 at 4:35 PM, Martin Peres martin.pe...@free.fr wrote: On 19/05/15 23:28, Ilia Mirkin wrote: A 32-bit shift is a no-op, which will also make the new planemask get or'd with ~0, thus negating the usefulness of the subsequent planemask != ~0 check. Only do this if it's a