Skip to content

Iss798 - #837

Merged
techomancer merged 1 commit into
mainfrom
iss798
Nov 22, 2026
Merged

Iss798#837
techomancer merged 1 commit into
mainfrom
iss798

Conversation

@techomancer

Copy link
Copy Markdown
Owner

No description provided.

With SHADE set, the JIT built the source colour from clamped red, green
and blue bytes in every mode. In colour-index mode the interpreter, and
the hardware, use the red DDA's integer part (get_colori) as the index,
so green and blue (which IRIS GL clients leave holding floats) leaked
into the written index. SideFX PRISMS's smooth and facet views, which
draw lit 12bpp CI spans, turned into black and white stripes, and only
with the JIT: iris-gui always has it, the default CLI build does not.

Fixed in both the span/block shader and the line shader. New tests
jit_span_shade_ci12 and jit_iline_shade_ci12 use the guest's register
values; both fail before this change. A recording of PRISMS switching
to smooth now replays through the JIT with every checkpoint matching
and a framebuffer identical to the interpreter's.

Issue #798.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant