http://bugs.freedesktop.org/show_bug.cgi?id=14002

           Summary: [i965] GL_COMPARE_R_TO_TEXTURE_ARB is not handled well
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: dri-devel@lists.sourceforge.net


System Environment:
--------------------------
--Platform: FC6
--Xf86_video_intel:f089942689df622b1af00569eade4883a84eb7a3
--Mesa:3369cd9a6f943365242d7832e69788d4aede9a8f 
--DRM:cd19dcef4f7cc454f68618a0a1e903f159db21ad
--Kernel:2.6.22

Bug detailed description:
--------------------------
this issue doesn't happen in software rendering mode
this issue doesn't happen on i915
GL_COMPARE_R_TO_TEXTURE_ARB is not handled well.
the driver will complains:
"Unknown value in intel_translate_shadow_compare_func: 884e"

and it seems, the code related here is:
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c:324L
   if (key->comparemode == GL_COMPARE_R_TO_TEXTURE_ARB) {
      /* Shadowing is "enabled" by emitting a particular sampler
       * message (sample_c).  So need to recompile WM program when
       * shadow comparison is enabled on each/any texture unit.
       */
      sampler->ss0.shadow_function =
         intel_translate_shadow_compare_func(key->comparemode);
   }
but intel_translate_shadow_compare_func can't handle this comparemode

Reproduce steps:
----------------
start X
compile and run the attached test case


Current result:
----------------
GL_COMPARE_R_TO_TEXTURE_ARB is not handled well


Expected result:
----------------
GL_COMPARE_R_TO_TEXTURE_ARB should be handled well


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to