All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
To: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] nouveau/vieux: only advertise supported texture formats
Date: Mon, 30 Apr 2012 21:42:49 +0200	[thread overview]
Message-ID: <87vckhvwee.fsf@riseup.net> (raw)
In-Reply-To: <1335810158.9221.16.camel@tellur> (Lucas Stach's message of "Mon, 30 Apr 2012 20:22:38 +0200")


[-- Attachment #1.1.1: Type: text/plain, Size: 1423 bytes --]

Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:

> Am Montag, den 30.04.2012, 20:08 +0200 schrieb Francisco Jerez:
>> Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> writes:
>>[...]
>> > +	/* only advertise supported texture formats */
>> > +	memset(&ctx->TextureFormatSupported, 0,
>> > +	       sizeof(ctx->TextureFormatSupported));
>> > +	ctx->TextureFormatSupported[MESA_FORMAT_XRGB8888] = true;
>> > +	ctx->TextureFormatSupported[MESA_FORMAT_ARGB8888] = true;
>> > +	ctx->TextureFormatSupported[MESA_FORMAT_RGB565] = true;
>> > +	ctx->TextureFormatSupported[MESA_FORMAT_Z16] = true;
>> > +	ctx->TextureFormatSupported[MESA_FORMAT_Z24_S8] = true;
>> > +
>> Hi Lucas,
>> 
>> It's not obvious to me how this works.  AFAIK nouveau doesn't make use
>> of this array.  And even if it did, the texture formats you're listing
>> aren't the supported ones.
>
> Hello Francisco,
>
> The core mesa code decides what texture formats to advertise based on
> this array.

Are you sure?  TextureFormatSupported doesn't seem to have any effect
except in drivers that use mesa's default for the ChooseTextureFormat
hook.

> And obviously someone thought it would be a good idea to
> init this array to "everything supported" if the driver doesn't
> overrides this.
>
> I opted to only advertise renderable texture formats, for reasons
> explained in my mail a minute ago.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2012-04-30 19:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-30 17:16 [PATCH] nouveau/vieux: only advertise supported texture formats Lucas Stach
     [not found] ` <1335806214-13903-1-git-send-email-dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
2012-04-30 17:54   ` Christoph Bumiller
     [not found]     ` <1335809942.9221.13.camel@tellur>
2012-04-30 18:27       ` Lucas Stach
2012-04-30 18:08 ` [Nouveau] " Francisco Jerez
     [not found]   ` <1335810158.9221.16.camel@tellur>
2012-04-30 18:26     ` Lucas Stach
2012-04-30 19:42     ` Francisco Jerez [this message]
     [not found]       ` <87vckhvwee.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2012-04-30 19:54         ` Lucas Stach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vckhvwee.fsf@riseup.net \
    --to=currojerez-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
    --cc=dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.