Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with indirect constant addressing



The ARB spec limits this offset to -64…63, or something like that. It's either 63 or 64. It's probably a limitation from the hardware of the time the spec was written.

(Unfortunately this has bitten us before because Cg will sometimes generate these out-of-range offsets... though this is fixed in the most recent builds.)


On Oct 27, 2007, at 4:33 PM, Stefan Dösinger wrote:

Hello List,

I'm having an odd issue with indirect addressing of constants in
GL_ARB_vertex_program: The involved code looks like this:

PARAM C[253] = { program.env[0..252] };
...
DP4 R0.x, vertex.attrib[0], C[A0.x + 75];

At compilation, the OpenGL lib complains: "Error on line 16: out of range
indirect offset (hint: '+75')"


I don't see 75 beeing out of range here. Is this some known limitation? Or is
this some unknown bug that needs more investigation? Are there any
workarounds, appart of adding 75 to A0.x?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/jstiles% 40blizzard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Problem with indirect constant addressing (From: Stefan Dösinger <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.