| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
A few subpixel_snap and fixed width changes.
Conflicts:
src/gallium/drivers/llvmpipe/lp_setup_point.c
|
|
|
|
|
|
|
|
| |
Conflicts:
src/gallium/drivers/llvmpipe/lp_setup_context.h
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
|
| |
|
| |
|
|
|
|
|
| |
Line rasterization that follows diamond exit rule.
Can still optimize logic for start/endpoints.
|
|
|
|
|
| |
Rasterize lines directly by treating them as 4-sided polygons.
Still need to check the exact pixel rasteration.
|
| |
|
|
|
|
|
|
| |
Looks nice, but makes almost no impact on performance - maybe
a percent or so in isosurf, nothing elsewhere. May be of use
later on.
|
|
|
|
| |
Remove p_compiler.h.
|
|
|
|
| |
Include p_compiler.h for boolean and INLINE symbols.
|
|
|
|
| |
Include p_compiler.h for uint symbol.
|
|
|
|
| |
Include p_compiler.h for uint symbol.
|
|
|
|
| |
Remove p_compiler.h.
|
|
|
|
| |
Include p_compiler.h for PUBLIC symbol.
|
|
|
|
| |
Include p_compiler.h for uint32_t and boolean symbols.
|
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit bd25e23bf3740f59ce8859848c715daeb9e9821f.
Apart from introducing a lot of hex magic numbers and being highly impenetable code,
it causes lots of lockups on an average piglit run that always runs without lockups.
Always run piglit before/after doing big things like this.
|
|
|
|
|
|
|
|
|
| |
this adds handling for some more CF instructions and conditions
also adds parameter for stack size emission
These seem to pass on VS with the stack size hack but not on FS,
TODO: fix FS + stack size calcs
|
|
|
|
|
|
| |
this makes op2 emission smaller, since it skips instructions
that don't write to the dst. not sure if this could have unwanted
side effects but try it and see.
|
|
|
|
| |
though it isn't passing the test, and this instruction is pure bonghits.
|
| |
|
|
|
|
| |
+269 piglits
|
|
|
|
|
| |
It hangs the GPU due to FB_WRITE handling being incomplete. There are
bigger issues to handle first.
|
| |
|
|
|
|
|
| |
I'm also fixing this upstream in libdrm, but this avoids new libdrm
dependency for the moment.
|
|
|
|
|
| |
This should make debugging way easier, as now we have context for
reading large programs.
|
| |
|
|
|
|
| |
At least some tests, like glsl-vs-sign, now work.
|
|
|
|
| |
This can successfully emit a real program that generates magenta now.
|
|
|
|
|
|
|
|
|
|
|
| |
Our channel-expressions and vector-splitting changes now happen into a
private copy of the IR that we maintain for ourselves. Uniform
assignment still happens by the core, so we continue using Mesa IR
generation not just for swrast fallbacks but also for uniform values
(since there's no storage for their contents other than
shader_program->FragmentProgram->Parameters->ParameterValues). And
most importantly, at the moment no actual codegen is hooked up other
than emitting our favorite color to the framebuffer.
|
|
|
|
|
|
|
| |
Combined with the previous pass, this lets other optimization passes
do their work thanks to ir_tree_grafting. Still have regression in
instruction count with INTEL_NEW_FS, but register count is even
better.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a step towards implementing a GLSL IR backend for the 965
fragment shader. Because it has downsides with the current codegen,
it is hidden under the environment variable INTEL_NEW_FS.
This results in an increase in instruction count at the moment (1444
-> 1752 for glsl-fs-raytrace, 345 -> 359 on my demo), because dot
products are turned into a series of multiplies and adds instead of a
custom expansion of MULs and MACs, and by not splitting the variable
types up we don't get tree grafting and thus there are extra moves of
temporary storage. However, register count drops for the non-GLSL
path (64 -> 56 on my demo shader) because the register allocator sees
all the sub-operations.
|
| |
|
|
|
|
|
| |
Fixes crashes in glean glsl1 and demos/src/glsl/vert-tex.
See comments for details.
|
| |
|
|
|
|
|
|
|
|
| |
Fixes:
glsl-array-bounds-02 (software)
glsl-array-bounds-04
glsl-array-bounds-06 (software)
glsl-array-bounds-08
|
|
|
|
| |
Reduces runtime of glsl-max-varyings 92% on my system.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes: glsl-vs-varying-array
|
|
|
|
|
|
| |
Shader inputs appear in source registers, not dst registers. Catches
unsupported shaders in glsl-fs-varying-array and Humus
RaytracedShadows.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Per the GLSL 1.20 specification (presumably a clarification of 1.10).
Also, when creating user functions, make a new ir_function that shadows the
built-in ir_function, rather than adding new signatures. User functions
are supposed to hide built-ins, not overload them.
Fixes piglit tests redeclaration-{04, 12, 14}.vert.
|
|
|
|
|
|
| |
Also rename it to "is_builtin" for consistency.
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moving the check for an earlier variable declaration helps cleanly
separate out the re-declaration vs. new declaration code a bit. With
that in place, conflicts between variable names and structure types or
function names aren't caught by the earlier "redeclaration" error
message, so check the return type on glsl_symbol_table::add_variable
and issue an error there. If one occurs, don't emit the initializer.
Fixes redeclaration-01.vert and redeclaration-09.vert.
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
| |
Instead, make a new ir_function and try to add it to the symbol table.
Fixes piglit test redeclaration-08.vert.
|