| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Partial fix for glsl-uniform-initializer-5.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This showed up since the disabling of inlining at compile time, which
I apparently didn't regenerate piglit summary for.
Fixes:
glsl-deadcode-call.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I introduced this for ir_dead_code to distinguish function parameter
outvals from varying outputs. Only, since ast_to_hir's
current_function is unset when setting up function parameters (they're
needed for making the function signature in the first place), all
function parameter outvals were marked as shader outputs anyway. This
meant that an inlined function's cloned outval was marked as a shader
output and couldn't be dead-code eliminated. Instead, since
ir_dead_code doesn't even look at function parameters, just use
var->mode.
The longest Mesa IR coming out of ir_to_mesa for Yo Frankie drops from
725 instructions to 636.
|
| |
|
|
|
|
|
| |
If we don't walk into functions, we won't see any usage of variables
in the functions.
|
|
|
|
|
| |
This way, we don't need to pass in a parse state, and the context
doesn't grow with the number of passes through optimization.
|
| |
|
|
|
|
| |
This cuts runtime by around 20% from talloc_parent() lookups.
|
|
|