Motherboard Forums


Reply
Thread Tools Display Modes

GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV limitation "per pixel" or "per frame" ?

 
 





















Skybuck Flying
Guest
Posts: n/a

 
      10-24-2009, 04:44 AM


Hello,

I have a little question about GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV.

On my NVIDIA GTX 7900 it returns: 4530371

Does this mean each fragment can execute 4.5 million instructions before
being terminated ?

Or does this mean all fragments together can execute at most 4.5 millions
instructions before being terminated ?

So is this limitation "per pixel" or "per frame" ???

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a

 
      10-24-2009, 04:49 AM
Hmm to answer my own question... I guess it's per pixel...

Since a frame can be 1920x1200 pixels... which would be: 2304000

So if it were 4.5 million in total.. then that would only be roughly 2
instructions per pixel which would be pretty crappy

So I think it's 4.5 million per pixel !

Bye,
Skybuck.


 
Reply With Quote
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      10-25-2009, 10:24 AM
Skybuck Flying wrote:

> Hello,
>
> I have a little question about GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV.
>
> On my NVIDIA GTX 7900 it returns: 4530371
>
> Does this mean each fragment can execute 4.5 million instructions before
> being terminated?


I think the terminology "instruction count" is quite clear: It limits the
length of your program. From your point of view the GPU is a massive
parallel processor, that executes the same program on a very large data
file (the textures and the framebuffer).

> So is this limitation "per pixel" or "per frame" ???


Think about the following: Early generations of shader capable GPUs had an
instruction limit of ~200. I think this should make the answer obvious.


Wolfgang
--
OpenGL tip #42:
How to exactly map texture texels to screen pixels:
<http://preview.tinyurl.com/cgndc8>
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 06:46 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43