From: Brian Paul <brianp@vmware.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 1/3] r600: add span support for 2D tiling
Date: Thu, 27 May 2010 09:51:43 -0600 [thread overview]
Message-ID: <4BFE950F.3090208@vmware.com> (raw)
In-Reply-To: <AANLkTinVphE2dBCOXJIC-5Tr55SgRNHgFinYQe4BAjE5@mail.gmail.com>
Alex Deucher wrote:
> On Thu, May 27, 2010 at 10:55 AM, Matt Turner <mattst88@gmail.com> wrote:
>>> +static inline GLint r600_log2(GLint n)
>>> +{
>>> + GLint log2 = 0;
>>> +
>>> + while (n >>= 1)
>>> + ++log2;
>>> + return log2;
>>> +}
>> Does mesa not provide something like this?
>
> The only one I could find was a gallium utility function.
There's a logbase2() function in teximage.c but it might not be
equivalent.
-Brian
next prev parent reply other threads:[~2010-05-27 15:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 23:12 [PATCH 0/3] Add r6xx/r7xx tiling support to mesa Alex Deucher
2010-05-25 23:12 ` [PATCH 1/3] r600: add span support for 2D tiling Alex Deucher
2010-05-25 23:12 ` [PATCH 2/3] r600: add new relocs for tiling support Alex Deucher
2010-05-25 23:12 ` [PATCH 3/3] r600: add support for getting the tiling config via drm ioctl Alex Deucher
2010-05-27 14:55 ` [PATCH 1/3] r600: add span support for 2D tiling Matt Turner
2010-05-27 15:20 ` Alex Deucher
2010-05-27 15:37 ` Alan Cox
2010-05-27 15:51 ` Brian Paul [this message]
2010-05-27 22:04 ` Conn Clark
2010-05-27 22:36 ` Alan Cox
2010-05-27 23:01 ` Frieder Ferlemann
2010-05-27 23:34 ` Conn Clark
2010-05-27 23:52 ` Alan Cox
2010-05-27 23:47 ` Alex Deucher
2010-05-28 0:10 ` Matt Turner
-- strict thread matches above, loose matches on Subject: below --
2010-05-27 7:54 Frieder Ferlemann
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=4BFE950F.3090208@vmware.com \
--to=brianp@vmware.com \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.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.