| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
This is a hw requirement in math args. This also is inefficient, as
we're calculating the same result 8 times, but then we've been doing
that on pre-gen6 as well. If we're doing math on uniforms, though,
we'd probably be better served by having some sort of mechanism for
precalculating those results into another uniform value to use.
Fixes 7 piglit math tests.
|
| |
|
| |
|
|
|
|
|
| |
This was leftover from the pre-gen6 cleanups. One tests regresses
where compute-to-MRF now occurs.
|
|
|
|
| |
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
| |
Commit for generated file glsl_lexer.cpp follows this commit.
Reviewed-by: Ian Romanick <[email protected]>
|
|
|
|
| |
Reviewed-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Add ability to set the GLSL version used by the GLcontext by setting the
environment variable INTEL_GLSL_VERSION. For example,
env INTEL_GLSL_VERSION=130 prog args
If the environment variable is missing, the GLSL versions defaults to 120.
Reviewed-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By calling radeon_draw_buffers (which sets the necessary flags
in radeon->NewGLState) and revalidating if NewGLState is non-zero
in r200TclPrimitive. This fixes an assert in libdrm (the color-/
depthbuffer was changed but not yet validated) and and stops the
kernel cs checker from complaining about them (when they're too
small).
Thanks to Mario Kleiner for the hint to call radeon_draw_buffer
(instead of my half-broken hack).
v2: Also fix the swtcl r200 path.
Cc: Mario Kleiner <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
|
|
|
|
|
|
| |
This didn't produce a statistically significant performance difference
in my demo (n=4) or nexuiz (n=3), but it still seems like a good idea
and is recommended by the HW team.
|
| |
|
|
|
|
| |
This is progress towards enabling a compute-to-MRF pass.
|
|
|
|
| |
It's time to start splitting some of this up.
|
|
|
|
|
|
| |
While I don't know of any performance changes from this (once extra
reg available out of 128), it makes the generated asm a lot cleaner
looking.
|
|
|
|
|
|
| |
Having the single opcode write then read the reg meant that single
instruction opcodes had to consider their source regs to interfere
with their dest regs.
|
| |
|
|
|
|
| |
To allow more optimizations, in particular for direct textures.
|
|
|
|
| |
Useful to give human legible names in other cases.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
SSE support for 32bit and 16bit unsigned arithmetic is not complete, and
can easily result in inefficient code.
In most cases signed/unsigned doesn't make a difference, such as for
integer texture coordinates.
So remove uint_coord_type and uint_coord_bld to avoid inefficient
operations to sneak in the future.
|
| |
|
|
|
|
|
|
| |
This could probably be done much nicer, I've spent a day chasing
a coherency problem in the kernel, that turned out to be incorrect
scissor setup.
|
|
|
|
| |
fixes glsl1-2D Texture lookup with explicit lod (Vertex shader)
|
|
|
|
|
|
|
|
| |
We need to move the texture sampler resources out of the range of the vertex attribs.
We could probably improve this using an allocator but this is the simple answer for now.
makes mesa-demos/src/glsl/vert-tex work.
|
| |
|
| |
|
|
|
|
|
| |
We end up treating them as scalars in the end, and it saves some
instructions.
|
|
|
|
| |
With this commit all explicit Phi emission is now gone.
|
|
|
|
| |
GALLIVM_DEBUG=no_brilinear runtime option
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can't patch true-block at end-if time, as there is no guarantee that
the block at the beginning of the true stanza is the same at the end of
the true stanza -- other control flow elements may have been emitted half
way the true stanza.
Although this bug surfaced recently with the commit to skip mip filtering
when lod is an integer the bug was always there, although probably it
was avoided until now: e.g., cubemap selection nests if-then-else on the
else stanza, which does not suffer from the same problem.
|
| |
|
| |
|
| |
|
|
|
|
| |
No need for for a flow stack anymore.
|
| |
|
|
|
|
| |
Simply rely on mem2reg pass. It's easier and more reliable.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Stop disassembling on unconditional backwards jumps.
|
| |
|
|
|
|
|
|
|
|
| |
We've been using these in the linear path for a while now. Based on
Chris's SSSE3 code, but using only sse2 opcodes. Speed seems to be
identical, but code is simpler & removes dependency on SSE3.
Should be easier to extend to other rgba8 formats.
|
|
|
|
|
|
|
|
|
| |
Specifically, can do early-depth-test even when alpahtest or
kill-pixel are active, providing we defer the actual z write until the
final mask is avaialable.
Improves demos/fire.c especially in the case where you get close to
the trees.
|
|
|
|
|
| |
Don't branch more than once in quick succession. Don't branch at the
end of the shader.
|
|
|
|
|
| |
LLVM seems to finds it easier to reason about these than our
mantissa-manipulation code.
|
| |
|
|
|
|
| |
Avoid unnecessary masking of non-existant stencil component.
|
|
|
|
| |
Better than GALLIVM_DEBUG if you're only interested in fragment shaders.
|