Lukas Hejtmanek wrote:
On Thu, May 04, 2006 at 02:15:29PM +0200, Roland Scheidegger wrote:
I'm not sure why you'd need to change the routing of texture coord
sets to the texture interpolators (at least it looks to me this
code does that) for texture_env_crossbar, since fragment programs
can access the results of the sampled textures freely anyway, but
the code in i915_texprog.c clearly doesn't handle that extension
(unless I'm missing something and that code isn't used any longer).
It looks to me like you could just change the get_source function
to make env_crossbar working though (just use src-GL_TEXTURE0
instead of unit as param). I'm not familiar with the intel driver
however, it's possible it doesn't work like that.

I do not understand 3D engine at all.

However, for i830 driver - texture_env_crossbar was only present in
GL extensions that driver supports and nowhere else.
Well that's only half the truth you really need to look up what the
extension actually does in the opengl registry. For this extension specifically, you need to handle GL_TEXTURE0 - GL_TEXTUREn enums as texture combine sources. The i830 driver does this (it ends up in i830SetTexEnvCombine in i830_texblend.c) whereas the i915 driver doesn't (it uses some default junk value regardless the enum). You usually won't find the extension string itself anywhere in the code apart from those enable bits (unless it's in some comment).

So, I thought I can list t_e_c also for i915 driver. However, I found
that notice about not supporting t_e_c. So I was asking, whether
listing t_e_c without appropriate code is useless. Anyway, the game
Glest needs t_e_c and it seems to be working with i915 driver if I
make t_e_c present in GL extensions of the i915 driver. But may be
it's not working and I only do not see some special effects of the
game.
That's quite possible. It's also possible the game doesn't really need it in your case but still requests it (i.e. something like the game would use texture_env_crossbar if no vertex programs and fragment programs are available, but if those are available it uses these instead).

Roland


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to