<p>Acked-by: Corbin Simpson <<a href="mailto:MostAwesomeDude@gmail.com">MostAwesomeDude@gmail.com</a>></p>
<p>Sending from a mobile, pardon the brevity. ~ C.</p>
<div class="gmail_quote">On Apr 19, 2011 4:13 PM, "Ian Romanick" <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>> wrote:<br type="attribution">> -----BEGIN PGP SIGNED MESSAGE-----<br>> Hash: SHA1<br>
> <br>> On 04/16/2011 09:45 AM, Corbin Simpson wrote:<br>>> On Fri, Apr 15, 2011 at 11:10 PM, Ian Romanick <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>> wrote:<br>>>> This patch series cleans out the last vestiges of fixed-function fog<br>
>>> support with ARB_fragment_program. We talked about doing this quite<br>>>> some time ago, but we decided to hold off. The thinking at the time<br>>>> was that there was still a chance that someone might add support for<br>
>>> the fixed-function fog on either i915 or r300.<br>>>><br>>>> Reality check: there is no chance because nobody cares. :)<br>>>><br>>>> Patch 1/9 cleans up a couple minor bugs in the fixed-function<br>
>>> fragment program code.<br>>>><br>>>> Patches 2/9, 3/9, and 4/9 remove code that checks for fp.FogOption to<br>>>> be non-GL_NONE. Thanks to the first patch, this can *never* happen.<br>
>>><br>>>> Patch 5/9 removes gl_fragment_program::FogOption.<br>>>><br>>>> The remaining four patches remove all the dangling bits of support for<br>>>> fixed-function fog on i915. Since fog is (and always has been)<br>
>>> handled by fragment programs on i915, this code is completely useless.<br>>>><br>>>> I have tested this whole series on Ironlake (i965 driver) and G33<br>>>> (i915 driver). There were no piglit or GTF regressions in either<br>
>>> case.<br>>>><br>>>> I believe that, at the very least, the first four patches are suitable<br>>>> for the stable branches (after a suitable settling period on master,<br>>>> of course). The remaining five patches may also be suitable.<br>
>>><br>>>> src/mesa/drivers/dri/i915/i915_context.c | 8 +-<br>>>> src/mesa/drivers/dri/i915/i915_context.h | 15 --<br>>>> src/mesa/drivers/dri/i915/i915_fragprog.c | 11 +--<br>
>>> src/mesa/drivers/dri/i915/i915_state.c | 164 +-------------------<br>>>> src/mesa/drivers/dri/i915/i915_vtbl.c | 9 -<br>>>> src/mesa/drivers/dri/i965/brw_program.c | 5 -<br>
>>> .../drivers/dri/r300/compiler/r300_fragprog_emit.c | 2 -<br>>>> src/mesa/main/ff_fragment_shader.cpp | 44 +++---<br>>>> src/mesa/main/mtypes.h | 1 -<br>
>>> src/mesa/program/arbprogparse.c | 18 +--<br>>>> src/mesa/program/program.c | 1 -<br>>>> src/mesa/program/programopt.c | 33 +++--<br>
>>> src/mesa/program/programopt.h | 4 +-<br>>>> src/mesa/swrast/s_context.c | 15 +--<br>>>> src/mesa/tnl/t_context.c | 12 +-<br>
>>> 15 files changed, 70 insertions(+), 272 deletions(-)<br>>> <br>>> r300 *did* support FF fog at one point, but it got tossed out because<br>>> we couldn't get it to work with fog coordinates. (Well, *I* couldn't<br>
>> get it to work; I think osiris got it mostly-working-sort-of at one<br>>> point.) This code will not be missed.<br>> <br>> Right. I believe people eventually figured out that fglrx didn't use<br>
> the fixed-function fog either. It seems likely that it was for the same<br>> reason. :) Looking at the i915 docs, there a bunch of restrictions and<br>> weird quirks that look like they'd make it more trouble that it's worth.<br>
> Plus, I don't think a lot of applications use part shader / part<br>> fixed-function anyway.<br>> <br>> Can I call this an Acked-by?<br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.11 (GNU/Linux)<br>
> Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>> <br>> iEYEARECAAYFAk2uFxIACgkQX1gOwKyEAw9zuACfWUW9RLRqeauVKPK103E//BNb<br>> /swAnixkaFG6jKh0FrgPk3hoi6wFu+uY<br>
> =p6R3<br>> -----END PGP SIGNATURE-----<br></div>