[Mesa-dev] [PATCH] r300g: add pipe number overrides
Alex Deucher
alexdeucher at gmail.com
Thu Apr 22 14:20:44 PDT 2010
On Thu, Apr 22, 2010 at 4:40 PM, Tormod Volden <lists.tormod at gmail.com> wrote:
> From: Tormod Volden <debian.tormod at gmail.com>
>
> These should also be in the newest linux kernels.
>
> Signed-off-by: Tormod Volden <debian.tormod at gmail.com>
gallium and classic with kms get this number form the drm and can't
program the relevant regs, so the drm patch is required for gallium
and classic with kms.
Alex
> ---
> src/gallium/drivers/r300/r300_chipset.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/src/gallium/drivers/r300/r300_chipset.c b/src/gallium/drivers/r300/r300_chipset.c
> index 9b2163e..56b8a9d 100644
> --- a/src/gallium/drivers/r300/r300_chipset.c
> +++ b/src/gallium/drivers/r300/r300_chipset.c
> @@ -370,4 +370,13 @@ void r300_parse_chipset(struct r300_capabilities* caps)
> fprintf(stderr, "r300: Warning: Unknown chipset 0x%x\n",
> caps->pci_id);
> }
> +
> + /* pipe overrides */
> + switch (caps->pci_id) {
> + case 0x4144: /* R300 AD */
> + case 0x4148: /* R350 AH */
> + case 0x5e4c: /* RV410 SE */
> + case 0x5e4f: /* RV410 SE */
> + caps->num_frag_pipes = 1; /* only have 1 quadpipe */
> + }
> }
> --
> 1.7.0.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list