Skip to contentSkip to conversation

Register "linking"

DISCUSSION Olivier Galibert 2 participants 2 messages Jun 12, 2012

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 8 lines · Olivier Galibert

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().

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx