mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 18:00:24 +01:00
i915: Fix i830 polygon stipple from PBOs.
This is a direct port of the i915 patch ina856da6324. Fixes glean's pbo test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41372 Reviewed-by: Eric Anholt <eric@anholt.net> NOTE: This is a candidate for release branches. (cherry picked from commit489ac8e73a)
This commit is contained in:
parent
5696077656
commit
a3f6e8f431
1 changed files with 7 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ static void
|
|||
i830PolygonStipple(struct gl_context * ctx, const GLubyte * mask)
|
||||
{
|
||||
struct i830_context *i830 = i830_context(ctx);
|
||||
const GLubyte *m = mask;
|
||||
const GLubyte *m;
|
||||
GLubyte p[4];
|
||||
int i, j, k;
|
||||
int active = (ctx->Polygon.StippleFlag &&
|
||||
|
|
@ -488,6 +488,12 @@ i830PolygonStipple(struct gl_context * ctx, const GLubyte * mask)
|
|||
i830->state.Stipple[I830_STPREG_ST1] &= ~ST1_ENABLE;
|
||||
}
|
||||
|
||||
/* Use the already unpacked stipple data from the context rather than the
|
||||
* uninterpreted mask passed in.
|
||||
*/
|
||||
mask = (const GLubyte *)ctx->PolygonStipple;
|
||||
m = mask;
|
||||
|
||||
p[0] = mask[12] & 0xf;
|
||||
p[0] |= p[0] << 4;
|
||||
p[1] = mask[8] & 0xf;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue