Mesa (master): mesa: Convert fixed function fragment program generator to GLSL IR.

Eric Anholt anholt at kemper.freedesktop.org
Tue Oct 18 18:06:44 UTC 2011


Module: Mesa
Branch: master
Commit: 7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Nov  1 13:16:21 2010 -0700

mesa: Convert fixed function fragment program generator to GLSL IR.

This is a step towards providing a direct route for drivers accepting
GLSL IR for codegen.  Perhaps more importantly, it runs the fixed
function fragment program through the GLSL IR optimization.  Having
seen how easy it is to make ugly fixed function texenv code that can
do unnecessary work, this may improve real applicatinos.

---

 src/mesa/main/ff_fragment_shader.cpp | 1431 ++++++++++++++++------------------
 src/mesa/main/state.c                |    7 +-
 src/mesa/main/texenvprogram.h        |    2 +-
 src/mesa/program/program.c           |    2 +-
 4 files changed, 688 insertions(+), 754 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a



More information about the mesa-commit mailing list