On 21.01.2010 21:28, Roland Scheidegger wrote:
> On 21.01.2010 20:20, michal wrote:
>   
>> Hi,
>>
>> This simple feature branch adds support for two-dimensional constant 
>> buffers in TGSI.
>>
>> An example shader would look like this:
>>
>> FRAG
>>
>> DCL IN[0], COLOR, LINEAR
>> DCL OUT[0], COLOR
>> DCL CONST[1][1..2]
>>
>> MAD OUT[0], IN[0], CONST[1][2], CONST[1][1]
>>
>> END
>>
>> For this to work, one needs to bind a buffer to slot nr 1 containing at 
>> least 3 vectors.
>>
>>     
> Looks good to me - I wondered how you'd use the multiple constant
> buffers possible by the gallium interface, and that is how :-).
> Is that something we'd need a cap bit for in the future? Would this be
> also used by ARB_uniform_buffer_object / GL 3.1?
>   
I'd also suggest adding a PIPE_CAP_MAX_CONSTANT_BUFFERS
to feed GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV
and friends, ...
and I'm not keen on having to put many little demons into
motion to combine constant buffers when st binds buffers
3 to 15 and 952, numbers frequently appearing for the
other index :-)

Christoph
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Mesa3d-dev mailing list
> Mesa3d-dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
>   


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to