| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Fixes these GCC warnings.
brw_wm_fp.c: In function 'search_or_add_const4f':
brw_wm_fp.c:92: warning: 'reg.Index2' is used uninitialized in this function
brw_wm_fp.c:84: note: 'reg.Index2' was declared here
brw_wm_fp.c:92: warning: 'reg.RelAddr2' is used uninitialized in this function
brw_wm_fp.c:84: note: 'reg.RelAddr2' was declared here
|
|
|
|
|
|
| |
Fixes this GCC warning.
brw_vs.c: In function 'do_vs_prog':
brw_vs.c:46: warning: unused variable 'ctx'
|
|
|
|
|
|
| |
Fixes this GCC warning.
brw_eu_emit.c: In function 'brw_math2':
brw_eu_emit.c:1189: warning: unused variable 'intel'
|
|
|
|
|
|
| |
Fixes this GCC warning.
i915_vtbl.c: In function 'i915_assert_not_dirty':
i915_vtbl.c:670: warning: unused variable 'dirty'
|
|
|
|
|
|
| |
Fixes this GCC warning.
i830_vtbl.c: In function 'i830_assert_not_dirty':
i830_vtbl.c:704: warning: unused variable 'i830'
|
| |
|
| |
|
|
|
|
|
|
|
| |
Improves performance of my GLSL demo 14.3% (+/- 4%, n=4) by
eliminating the moves used in ir_assignment and ir_swizzle handling.
Still 16.5% to go to catch up to the Mesa IR backend, presumably
because instructions are almost perfectly mis-scheduled now.
|
|
|
|
|
|
|
|
|
| |
We were trying to remap a fully-filled array down to only handing the
WM the components it uses. This is called attribute swizzling, and if
you don't enable it you just get 1:1 mappings of inputs to outputs.
This almost fixes glsl-routing, except for the highest gl_TexCoord[]
indices.
|
|
|
|
| |
We'd overwrite the same element twice.
|
|
|
|
|
|
| |
We would compute a new buffer, but never point the hardware at the new
buffer. This partially fixes glsl-routing, as now it get the updated
uniform for which attribute to draw.
|
|
|
|
|
| |
If someone happened to land a set in a different swizzle order, we
would have assertion failed.
|
|
|
|
| |
_mesa_add_unnamed_constant() already does that.
|
|
|
|
| |
_mesa_add_state_reference does that check for us anyway.
|
| |
|
|
|
|
| |
Fixes glsl-fs-texturecube-2-*
|
| |
|
| |
|
|
|
|
|
| |
Fixes point-line-no-cull.
Bug #30532
|
|
|
|
|
|
|
|
| |
We sensibly only provide it if the FS asks for it. We could actually
skip WPOS unless the FS needed WPOS.zw, but that's something for
later.
Fixes: glsl-texture2d and probably many others.
|
|
|
|
| |
Fixes glsl1-gl_FrontFacing var (2) with new FS.
|
| |
|
|
|
|
| |
This should fix texturing in the new FS backend.
|
|
|
|
| |
Not needed now that we're doing barycentric.
|
| |
|
|
|
|
|
| |
I only set it on the color_regions == 0 case, missing the important
case, causing GPU hangs on pre-gen6.
|
|
|
|
|
|
| |
The jump delta is now in the part of the instruction where the
destination fields used to be, and the src args are ignored (or not,
for the new non-predicated IF that we don't use yet).
|
| |
|
|
|
|
| |
It's not that hard to detect when we need the header.
|
|
|
|
|
| |
We could do the first operand as well by flipping the comparison, but
this covered several CMPs in code I was looking at.
|
|
|
|
| |
A debug disable had slipped in.
|
|
|
|
|
|
| |
https://bugs.freedesktop.org/show_bug.cgi?id=30632
NOTE: this is a candidate for the 7.9 branch.
|
|
|
|
| |
NOTE: this is a candidate for the 7.9 branch.
|
|
|
|
|
| |
This uses message headers for now, since we'll need it for MRT. We
can cut out the header later.
|
|
|
|
| |
It instead sensibly appears in the src0 slot.
|
|
|
|
|
|
| |
We could try to detect this in expression handling and do it
proactively there, but it seems like less logic to do it in one
optional pass at the end.
|
|
|
|
|
|
|
| |
The glsl core should be handling most dead code issues for us, but we
generate some things in codegen that may not get used, like the 1/w
value or pixel deltas. It seems a lot easier this way than trying to
work out up front whether we're going to use those values or not.
|
|
|
|
| |
This also means that our intervals now highlight dead code.
|
|
|
|
| |
Easy enough patch, who needs a full test run. Oh, that's right. Me.
|
|
|
|
|
|
|
|
|
|
| |
The brw_wm_surface_state.c handling of GL_DEPTH_TEXTURE_MODE doesn't
apply to shadow compares, which always return an intensity value. The
texture swizzles can do the job for us.
Fixes:
glsl1-shadow2D(): 1
glsl1-shadow2D(): 3
|
| |
|
|
|
|
| |
passes all piglit RG tests with softpipe.
|
|
|
|
| |
FORCE_ZERO_RTAINDEX should be in the fourth (and final) dword.
|
| |
|
|
|
|
|
|
|
| |
Luckily, one of them would result in failing out register allocation
when the other bugs were encountered. Applies to
glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined, which still
fails register allocation, but now legitimately.
|
| |
|
|
|
|
| |
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:
https://bugs.freedesktop.org/show_bug.cgi?id=30551
|
| |
|