| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
DRI2 will throw BadRequest for this when the client is not local, but
DRI2 is an implementation detail and not something callers should have
to know about. Silently swallow errors in this case, and just propagate
the failure through DRI2Connect's return code.
Note: This is a candidate for the stable release branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=28125
Signed-off-by: Christopher James Halse Rogers <[email protected]>
|
|
|
|
|
|
| |
Fixes a regression in codegen quality for ff_fragment_shader
conversion to GLSL -- glean texCombine produces 7.5% fewer Mesa IR
instructions.
|
|
|
|
|
| |
This fixes the remaining regression from ff_fragment_shader in Mesa IR
instruction count, to now being a 1.9% win overall.
|
|
|
|
| |
This looks just like the VS dump for now.
|
| |
|
|
|
|
|
|
|
|
|
| |
This saves both register space and upload bandwidth for unused values.
Note that previously we were relying on the visitor not initially
generating references to different sets of uniforms between the 8-wide
and 16-wide code generation, and now we're relying on them dead-code
eliminating the same stuff, too.
|
|
|
|
| |
This saves some 35MB when the program only uses GLSL shaders.
|
| |
|
|
|
|
|
|
|
| |
We should remove the relocations which caused a validation failure
from the list, so that the kernel receives only the validated ones.
NOTE: This is a candidate for the 7.11 branch.
|
| |
|
|
|
|
| |
It does nothing besides calling dri_create_context with the same parameters.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
That code drops performance in Unigine Heaven and Tropics
by a factor of 10. That's too crazy even for a debug build.
NOTE: This is a candidate for the 7.11 branch.
Reviewed-by: Brian Paul <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unlike C++, empty declarations such as
float;
should be valid. The spec is not explicit about this actually.
Some apps that generate their shader sources may rely on this. This was
noted when porting one of them to Linux from Windows.
Reviewed-by: Chad Versace <[email protected]>
Note: this is a candidate for the 7.11 branch.
|
|
|
|
| |
MSVC can now include the stdint.h at include/c99/stdint.h.
|
|
|
|
| |
Fixes assorted warnings about float vs. gl_constant_value pointers.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39841
This would only be hit if someone set RGTC_DEBUG=1.
|
| |
|
|\
| |
| |
| |
| |
| | |
Conflicts:
src/mesa/state_tracker/st_atom_pixeltransfer.c
src/mesa/state_tracker/st_program.c
|
| |
| |
| |
| | |
function
|
| | |
|
| |
| |
| |
| | |
This is a glsl_to_tgsi port of commit f7cd9a858c04.
|
| |
| |
| |
| | |
This is a glsl_to_tgsi port of commit d6e1a8f71437.
|
| |
| |
| |
| | |
Unlike Mesa IR, TGSI doesn't have a SWZ opcode.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Fixes an assertion failure in piglit test glsl-texcoord-array.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Before, if any uniform or constant array was accessed with indirect
addressing, st_translate_program() would emit uniform constants in the place
of immediates. This behavior was unavoidable with ir_to_mesa/mesa_to_tgsi, but
glsl_to_tgsi can work around it since the GLSL IR backend and the TGSI
emission are both inside the state tracker.
|
| |
| |
| |
| | |
I noticed these issues while working on get_bitmap_visitor().
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
fragment shader active
Since this was previously implemented using Mesa IR and _mesa_combine_programs,
this commit adds a new code path that works with glsl_to_tgsi.
|
| | |
|
| | |
|
| |
| |
| |
| | |
These two passes are written to handle indirect addressing properly.
|
| |
| |
| |
| |
| | |
The conditions of IF opcodes were not being counted as reads, which sometimes
led to the condition register being wrong or undefined.
|
| |
| |
| |
| |
| | |
This is a hack, but it's better than emitting an unnecessary MOV instruction
and hoping the optimization passes clean it up.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
generating assignments
This reduces the number of instructions in the fragment shader of
glsl-fs-atan-2 from 174 to 146 with EmitNoIfs enabled.
|
| | |
|
| |
| |
| |
| |
| | |
The opcode is never emitted by the glsl_to_tgsi_visitor, so its special case in
compile_tgsi_instruction() was dead code.
|
| |
| |
| |
| |
| | |
This prevents the copy propagation pass from being confused by undefined
channels and thus missing optimization opportunities.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes a regression unintentionally introduced by "glsl_to_tgsi: fix shaders with
indirect addressing of temps" that caused missing leaves in 3dmark01 test 4 (Nature)
and missing/displaced textures on human models in Counter-Strike: Source.
Signed-off-by: Emil Velikov <[email protected]>
Signed-off-by: Bryan Cain <[email protected]>
|
| | |
|