Age | Commit message (Collapse) | Author |
|
|
|
This quickly cuts 8% of the instructions in my glsl demo.
|
|
By doing so using the register allocator now, we avoid wasting a
register to make the alignment happen.
|
|
|
|
|
|
Fixes 36 testcases, including glsl-fs-shadow2d*-bias which fail on the
Mesa IR backend.
|
|
We should fix the SF to actually give us just the data we need, but
this fixes regressions in the new FS until then.
Fixes:
glsl-kwin-blur
glsl-routing
|
|
Fixes glsl1-texcoord varying.
|
|
Since gen5, jumps are in increments of 64 bits instead of increments
of 128-bit instructions.
|
|
Untested, since my hardware is not booting at the moment.
|
|
Trying to track the insanity of the different argument layouts for
normal/shadow crossed with normal/lod/bias one generation at a time is
enough.
Fixes: glsl1-texture2D() with bias.
(first test passing in this code that doesn't pass without it!)
|
|
We should end up with the same code, but anyone else with this issue
could share the handling (which I got wrong for shadow comparisons in
the driver before).
|
|
We were pointing each element at the .x channel of the
ParameterValues.
Fixes glsl1-linear fog.
|
|
We need to walk the type tree to get the right register types for
structure components. Fixes glsl-fs-statevar-call.
|
|
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
|
|
I've screwed this up enough times that I don't think it's worth it.
This time, it was that I was doing it once per top-level body
instruction instead of just once at the end of the loop body.
|
|
Fixes 13 piglit cases that failed at register allocation before.
|
|
The interference is totally bogus (maximal), so this is equivalent to
our trivial register assignment before. As in, passes the same set of
piglit tests.
|
|
Now, virtual GRFs are consecutive integers, rather than offsetting the
next one by the size. We need the size information to still be around
for real register allocation, anyway.
|
|
Fixes:
glsl-fs-discard-02 (GPU hang)
glsl1-discard statement (2)
|
|
|
|
This reverts commit 0a1910c26760762eb8d67f68dfd87494ab479e38.
oops, shouldn't apply tiling depth buffer for other chips as well.
|
|
Until we fixed GS hang issue.
|
|
Sandybridge only support tiling depth buffer, always set tiling bit.
Fix 'fbo_firecube' demo.
|
|
Fixes 8 piglit tests.
|
|
|
|
The deleted code was meant to be handling indexing of a matrix, which
would have been a noop if it had been correct.
|
|
Fixes:
glsl-fs-varying-array
glsl-texcoord-array
glsl-texcoord-array-2
glsl-vs-varying-array
|
|
Fixes:
glsl-array-varying-01
glsl-vs-mat-add-1
glsl-vs-mat-div-1
glsl-vs-mat-div-2
glsl-vs-mat-mul-2
glsl-vs-mat-mul-3
|
|
Fixes:
glsl-arb-frag-coord-conventions
glsl-fs-fragcoord
|
|
Fixes:
glsl1-discard statement in for loop
glsl-fs-loop-two-counter-02
glsl-fs-loop-two-counter-04
|
|
Fixes these tests using gl_FragData or just gl_FragDepth:
glsl1-Preprocessor test (extension test 1)
glsl1-Preprocessor test (extension test 2)
glsl-bug-22603
|
|
This is the first time these payload bits have made sense to me,
outside of brw_wm_pass* structure.
Fixes: glsl1-gl_FragDepth writing
|
|
+10 piglits
|
|
Fixes 7 piglit cases.
|
|
Fixes:
glsl1-gl_FrontFacing var (1)
glsl1-gl_FrontFacing var (2)
|
|
I confused the array sizing for number of files for the number of regs
in a file.
|
|
This apparently had never been tested elsewhere before being merged to
master.
|
|
Fixes 16 piglit cases.
|
|
Fixes: glsl1-struct(2)
|
|
We don't set the type on the array virtual reg as a whole, so here's
the right place.
Fixes:
glsl1-GLSL 1.20 arrays
glsl1-temp array with constant indexing, fragment shader
glsl1-temp array with swizzled variable indexing
|
|
We need to re-run channel expressions afterwards as it generates new
vector expressions, and we need to successfully support conditional
assignment (brw_CMP takes 2 operands, not 1).
|
|
|
|
While much of this we will want to support natively, this should make
the task of reaching the Mesa IR backend's quality easier.
Fixes:
glsl-fs-main-return.
|
|
Fixes:
glsl-fs-if-nested-loop.
|
|
Fixes:
glsl1-Negation
glsl1-Negation2
|
|
Fix pipe control command for depth stall and PS_DEPTH_COUNT write.
|
|
Need to set point sprite function in fixed SF state now on sandybridge.
|
|
Fix incorrect scissor rect struct and missed scissor state pointer
setting for sandybridge.
|
|
Depth offset function is moved to SF stage on sandybridge.
|