diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-10-29 20:18:01 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-10-29 20:18:01 +0000 |
commit | 99cc0fd67597cbcd6106afcf437a0d5e2431c9df (patch) | |
tree | b01d1ce2a717dd366c04e40db3481614c4ba7457 /src/gallium/drivers/i965/brw_pipe_rast.c | |
parent | 81b8589f064204d9ddcd7d1f9d43d2dcf5676235 (diff) |
i965g: work in progress on fragment shaders
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_rast.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_pipe_rast.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_rast.c b/src/gallium/drivers/i965/brw_pipe_rast.c index 86822d478a..51159bf147 100644 --- a/src/gallium/drivers/i965/brw_pipe_rast.c +++ b/src/gallium/drivers/i965/brw_pipe_rast.c @@ -64,3 +64,21 @@ calculate_line_stipple_rast() bls.bits1.inverse_repeat_count = tmpi; } + + + +static void +calculate_wm_lookup() +{ + if (rast->fill_cw == PIPE_POLYGON_MODE_LINE && + rast->fill_ccw == PIPE_POLYGON_MODE_LINE) { + line_aa = AA_ALWAYS; + } + else if (rast->fill_cw == PIPE_POLYGON_MODE_LINE || + rast->fill_ccw == PIPE_POLYGON_MODE_LINE) { + line_aa = AA_SOMETIMES; + } + else { + line_aa = AA_NEVER; + } +} |