public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* Register "linking"
@ 2012-06-12 10:35 Olivier Galibert
  2012-06-12 15:47 ` Eric Anholt
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Galibert @ 2012-06-12 10:35 UTC (permalink / raw)
  To: intel-gfx

  Hi guys,

I'm playing with my gm45, and trying to understand the inter-shader
register allocation and referencing aspects.  From what I see, the vs
and clipper follow the brw_vue_map to know where data is.  The
fragment shader, though, does its own input register allocation in the
urb_setup array.  How is the link done between the two?  I've been
unable to find it...

Best,

  OG.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Register "linking"
  2012-06-12 10:35 Register "linking" Olivier Galibert
@ 2012-06-12 15:47 ` Eric Anholt
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Anholt @ 2012-06-12 15:47 UTC (permalink / raw)
  To: Olivier Galibert, intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 722 bytes --]

On Tue, 12 Jun 2012 12:35:37 +0200, Olivier Galibert <galibert@pobox.com> wrote:
>   Hi guys,
> 
> I'm playing with my gm45, and trying to understand the inter-shader
> register allocation and referencing aspects.  From what I see, the vs
> and clipper follow the brw_vue_map to know where data is.  The
> fragment shader, though, does its own input register allocation in the
> urb_setup array.  How is the link done between the two?  I've been
> unable to find it...

The brw_sf* code takes the vertices from the vue_map and emits code to
generate interpolation coefficients for the InputsRead of the fragment
shader.  Then we can find them in our payload in that order in
fs_visitor::calculate_urb_set().

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

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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-12 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 10:35 Register "linking" Olivier Galibert
2012-06-12 15:47 ` Eric Anholt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox