All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marcin Kościelnicki" <koriakin-mP9o5jsk0RY@public.gmane.org>
To: "Viktor Novotný" <noviktor-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [RFC/PATCH] Switch dri driver to use rules-ng-ng headers
Date: Mon, 01 Nov 2010 01:59:31 +0000	[thread overview]
Message-ID: <7d9982d90fbc76c45c09e18e0a9f08b1@0x04.net> (raw)
In-Reply-To: <1288571171-8102-1-git-send-email-noviktor-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>

> following patches make the dri driver use rules-ng-ng(rnn) generated
> register definitions instead of renouveau generated ones.
> First set of 5 patches is for mesa repository, second set of 4 patches
is
> for rnn and consists of changes ported from renouveau.

Applied the rnn stuff.

> One thing I do not understand is, why rnn does not generate
> NV20_3D_TEX_ENABLE__LEN(should be 4), so any pointers on what to 
> do are welcome, as are any other comments, suggestions etc.

This is caused by the way TEX_ENABLE is defined...

<stripe length="4" stride="64">
  <doc> Texture units. </doc>
  <!-- ... -->
  <reg32 offset="0x1b0c" name="TEX_ENABLE">
    <!-- ... -->
  </reg32>
</stripe>

TEX_ENABLE is actually a singular register defined within an anonymous
stripe with length 4. If TEX_ENABLE was itself an array-register,
NV20_3D_TEX_ENABLE__LEN would be its length. What you want is the length
of the stripe, which doesn't have a name, and hence doesn't have a define.

I'd suggest changing the stripe's name to TEX, and nuking TEX_ prefix from
the regs inside it: you'll end up with NV20_3D_TEX__LEN defined to 4, and
the effective names of stuff inside it will be unchanged.

Marcin Kościelnicki
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2010-11-01  1:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01  0:26 [RFC/PATCH] Switch dri driver to use rules-ng-ng headers Viktor Novotný
     [not found] ` <1288571171-8102-1-git-send-email-noviktor-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2010-11-01  0:26   ` [PATCH 1/5] dri/nouveau: Import headers from rules-ng-ng Viktor Novotný
2010-11-01  0:26   ` [PATCH 2/5] dri/nouveau: nv04: Use rules-ng-ng headers Viktor Novotný
2010-11-01  0:26   ` [PATCH 3/5] dri/nouveau: nv10: " Viktor Novotný
2010-11-01  1:59   ` Marcin Kościelnicki [this message]
     [not found]     ` <7d9982d90fbc76c45c09e18e0a9f08b1-mP9o5jsk0RY@public.gmane.org>
2010-11-04 10:00       ` [PATCH] nv10-20: Name texture units stripe to expose number of tex-units to header Viktor Novotný
     [not found]         ` <1288864834-16144-1-git-send-email-noviktor-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2010-11-04 11:18           ` Marcin Kościelnicki
  -- strict thread matches above, loose matches on Subject: below --
2010-11-01  0:30 [RFC/PATCH] Switch dri driver to use rules-ng-ng headers Viktor Novotný
     [not found] ` <1288571454-8151-1-git-send-email-noviktor-9Vj9tDbzfuSlVyrhU4qvOw@public.gmane.org>
2010-11-01 17:15   ` Francisco Jerez
     [not found]     ` <87k4kx7yof.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-11-01 17:29       ` Marcin Kościelnicki
2010-11-01 22:08       ` Ben Skeggs
2010-11-15 17:09   ` Francisco Jerez
     [not found]     ` <87k4kewm2h.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2010-11-15 17:37       ` Francisco Jerez
2010-11-01  0:22 Viktor Novotný

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=7d9982d90fbc76c45c09e18e0a9f08b1@0x04.net \
    --to=koriakin-mp9o5jsk0ry@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=noviktor-9Vj9tDbzfuSlVyrhU4qvOw@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.