i915g: Enable mirror repeat wrap mode
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 23 Feb 2011 00:11:09 +0000 (00:11 +0000)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 24 Feb 2011 00:26:02 +0000 (00:26 +0000)
src/gallium/drivers/i915/TODO
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state.c

index eda5838a854c33ca03f4baf8fd46a7df8e97ef2f..fc644fe7f93c1666acac4f9574a053a27566efd4 100644 (file)
@@ -1,7 +1,7 @@
 Random list of problems with i915g:
 
-- Check if PIPE_CAP_BLEND_EQUATION_SEPARATE and PIPE_CAP_TEXTURE_MIRROR_REPEAT
-  work, the code is there. If not fix it! A simple task, good for beginners.
+- Check if PIPE_CAP_BLEND_EQUATION_SEPARATE work, the code is there.
+  If not fix it! A simple task, good for beginners.
 
 - Add support for PIPE_CAP_POINT_SPRITE either via the draw module or directly
   via the hardware, look at the classic driver, more advanced.
index d929eb25bdcbaeec13466a75c443749a9ccd4b8d..77febbf5012aa8e0754e33882f9b63de9b0b279e 100644 (file)
@@ -107,6 +107,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_ANISOTROPIC_FILTER:
    case PIPE_CAP_NPOT_TEXTURES:
    case PIPE_CAP_PRIMITIVE_RESTART: /* draw module */
+   case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
    case PIPE_CAP_TEXTURE_SHADOW_MAP:
    case PIPE_CAP_TWO_SIDED_STENCIL:
       return 1;
@@ -114,7 +115,6 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    /* Features that should be supported (boolean caps). */
    /* XXX: Just test the code */
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
-   case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
       return 0;
 
    /* Unsupported features (boolean caps). */
index f380708847bb9ce9541017dc9546070dce89966d..58bbbd1de2ce452944934b57fbd2ba47ba3cd6f2 100644 (file)
@@ -58,10 +58,8 @@ translate_wrap_mode(unsigned wrap)
       return TEXCOORDMODE_CLAMP_EDGE;
    case PIPE_TEX_WRAP_CLAMP_TO_BORDER:
       return TEXCOORDMODE_CLAMP_BORDER;
-   /*         
-   case PIPE_TEX_WRAP_MIRRORED_REPEAT:
+   case PIPE_TEX_WRAP_MIRROR_REPEAT:
       return TEXCOORDMODE_MIRROR;
-    */
    default:
       return TEXCOORDMODE_WRAP;
    }