[Mesa-dev] [PATCH 16/17] nvc0: Enable ARB_framebuffer_no_attachment

Ilia Mirkin imirkin at alum.mit.edu
Sat Mar 19 15:30:25 UTC 2016


On Sat, Mar 19, 2016 at 2:41 AM, Edward O'Callaghan
<eocallaghan at alterapraxis.com> wrote:
> Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> index 910143f..4a00d92 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> @@ -229,9 +229,11 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
>     case PIPE_CAP_PCI_BUS:
>     case PIPE_CAP_PCI_DEVICE:
>     case PIPE_CAP_PCI_FUNCTION:
> -   case PIPE_CAP_MSAA_MODES:
>        return 0;
>
> +   case PIPE_CAP_MSAA_MODES:
> +      return (1 << 5) | (1 << 4) | (1 << 3) | (1 << 2) | (1 << 1);

NVIDIA hw only supports up to MSAA 8. Also this would have to go in
the section where the other "odd" valued values are defined, above the
"enabled" and "disabled" sections.

> +
>     case PIPE_CAP_VENDOR_ID:
>        return 0x10de;
>     case PIPE_CAP_DEVICE_ID: {
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list