All pastes #53703 Raw Edit

Anonymous

public text v1 · immutable
#53703 ·published 2006-05-05 09:58 UTC
rendered paste body
Hi. Sorry for troubleing you but did not know how should I submit this data :(.
so I am sending it tou you. :(
 I attach two diff files for cmds.h and cmds.c. The most important is functi=
 on number 3. The firs two <br>arguments are the same as passed to glBlendFu=
 nc. Nevertheless in some cases, there is executed macro<br>for disabling al=
 pha, don't know why(I am not sure, whether it is important:(&nbsp; This was=
  tested on NV18.=20
On NV11 only third function is executed. Neither seconds or first is us=
 ed.<br>Regards Michael.<br>
Hi.
After enabling ALPHA on my visual :) reg1/reg2 values are always the same as two
parameters of glBlendFunc. Nevertheless sometimes there is executed this macro which I described before setting the alpha to false. Since this is not the part of my function, I will only mention it in my documentation. I am going to write correct marcros for my function today and add it to cms.c/cmds.h. I am still waiting for your oppinion about the function names :)
Regards Michael.

06-05-04, Micha&#322; Majchrowicz < mmajchrowicz@gmail.com> napisa&#322;(a):
- Ukryj cytowany tekst -

    SO there Would be 3 functions right ?
    First:
    NV10_BLEND_FUNC (0x304)
    1 parameter always =1 during my test
    Second:
    NV10_BLEND_FUNC_SRC(0x32c
    1 parameter always =0 during my test
    And Third
    NV10_BLEND_FUNC_DST(0x344)
    reg1, reg2, some constatn, some constant
    Is this correct ?
    Regards.

    2006/5/4, Stephane Marchesin < marchesin@icps.u-strasbg.fr>:

        Micha&#322; Majchrowicz wrote:
        > And question about this part. NV10_BLEND_FUNC is already declared
        > where as my NV10_BLEND_FUNC is at address 2b8 with value 0x344, should
        > I change the NV10_BLEND_FUNC, or call my new function for instance
        > NV10_SUB_BLEND_FUNC? :)
        > Regards Michael.
        >
        > *2b4   0x00000000   0x00042310   {size: 0x1   channel: 0x1   cmd:
        > NV10_BLEND_FUNC}
        > 2b5   0x00000000   0x00000001
        > 2b6   0x00000000   0x0004232c   {size: 0x1   channel: 0x1   cmd:
        > 0x0000032c}
        > 2b7   0x00000000   0x00000000
        > 2b8   0x00000000   0x00102344   {size: 0x4   channel: 0x1   cmd:
        > 0x00000344}
        > *
        >

        Well, the adress doesn't matter, since the commands can be put at
        different positions in the fifo. It's really possible that these
        commands can be used multiple times for example.

        What matters is the command number, though (32c and 344). You should
        probably name those NV10_BLEND_FUNC_SRC and NV10_BLEND_FUNC_DST (that's
        what they do, right ?).

        Stephane