gallium: add some commonly implemented bits of hw state
authorKeith Whitwell <keith@tungstengraphics.com>
Sun, 9 Mar 2008 14:07:09 +0000 (15:07 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Sun, 9 Mar 2008 20:23:03 +0000 (20:23 +0000)
src/gallium/include/pipe/p_state.h

index 49a003b9231eb66e8a60a3ee1ed2f20609560952..e338a27383c1f95df00b064cfe412c0fbf0aa9ae 100644 (file)
@@ -108,6 +108,7 @@ struct pipe_rasterizer_state
    unsigned line_stipple_enable:1;
    unsigned line_stipple_factor:8;  /**< [1..256] actually */
    unsigned line_stipple_pattern:16;
+   unsigned line_last_pixel:1;
    unsigned bypass_clipping:1;
    unsigned origin_lower_left:1;  /**< Is (0,0) the lower-left corner? */
 
@@ -154,7 +155,7 @@ struct pipe_clip_state
 struct pipe_constant_buffer
 {
    struct pipe_buffer *buffer;
-   unsigned size;    /** in bytes */
+   unsigned size;    /** in bytes (XXX: redundant!) */
 };
 
 
@@ -248,6 +249,7 @@ struct pipe_sampler_state
    unsigned compare_mode:1;      /**< PIPE_TEX_COMPARE_x */
    unsigned compare_func:3;      /**< PIPE_FUNC_x */
    unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */
+   unsigned prefilter:4;         /**< Wierd sampling state exposed by some api's */
    float shadow_ambient;         /**< shadow test fail color/intensity */
    float lod_bias;               /**< LOD/lambda bias */
    float min_lod, max_lod;       /**< LOD clamp range, after bias */