| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Fixes glsl-max-varyings.
|
|
|
|
|
| |
We were also screwing up the types in the process, and just not
emitting moves was easier.
|
|
|
|
|
|
|
|
|
| |
For structs/arrays/matrices, they were ending up as uint because we
forgot to set them. All varyings in GLSL 1.20 are of base type float,
so just force the matter here (which gets inherited at
emit_urb_writes() time).
Fixes vs-varying-array-mat2-col-rd.
|
|
|
|
|
| |
This gets the right types on the instructions, as well as emitting
minimal swizzles/writemasks.
|
|
|
|
| |
Fixes vs-uniform-array-mat2-index-col-rd.
|
|
|
|
| |
Fixes glsl-vs-masked-cos.
|
|
|
|
| |
Fixes vs-temp-array-mat2-col-rd.shader_test.
|
|
|
|
| |
Fixes glsl-vs-dot-vec2.
|
|
|
|
| |
Fixes glsl-vs-arrays-3.
|
|
|
|
|
| |
Adding the offset is the right thing to do here, and fixes
glsl-vs-mat-add-1.
|
|
|
|
| |
Fixes glsl-vs-if-bool.
|
|
|
|
|
| |
We were looking for attributes in the wrong place, and pointlessly
doing the work on gen6 at all.
|
|
|
|
| |
Fixes glsl-vs-if-greater.
|
| |
|
|
|
|
|
| |
I decided to refactor it a bit in adapting ir_to_mesa.cpp code, and
mangled it. Fixes glsl-vs-cross-2.
|
|
|
|
| |
Fixes segfault in glsl-vs-cross-2.
|
|
|
|
| |
Fixes glsl-vs-all-02 and many other tests.
|
|
|
|
| |
Fixes glsl-vs-abs-neg, glsl-vs-all-01, and probably many other tests.
|
| |
|
|
|
|
| |
Fixes some issues noticed in glsl-vs-all-01.
|
|
|
|
| |
There's no clever packing here, no pull constants, and no array support.
|
|
|
|
|
|
| |
The low-level IR is a mashup of brw_fs.cpp and ir_to_mesa.cpp. It's
currently controlled by the INTEL_NEW_VS=1 environment variable, and
only tested for the trivial "gl_Position = gl_Vertex;" shader so far.
|
|
|
|
| |
I want to just use the same enums in the VS.
|
|
|
|
|
| |
This should make gdbing more pleasant, and it might be used in sharing
part of the codegen between the VS and FS backends.
|
|
|
|
|
|
| |
This will be used by the new vertex shader backend. The scalarizing
passes are skipped for non-fragment, since vertex and geometry threads
are based on vec4s.
|
| |
|
|
|
|
|
| |
Before this commit, even LIBGL_DEBUG=verbose would just fail with:
libGL error: failed to create dri screen
|
|
|
|
|
|
|
|
|
|
| |
GLESv1 and GLESv2 have their own dispatch.h and remap_helper.h. These
headers are only used by api_exec_es1.c and api_exec_es2.c in core mesa.
Move the rules to generate them from glapi to core mesa.
Reviewed-by: Brian Paul <[email protected]>
[olv: updated after reviewing to fix SCons build]
|
|
|
|
|
|
|
|
|
|
|
|
| |
glapi/gen-es/ defines two sets of GLAPI XMLs for OpenGL ES 1.1
(es1_API.xml) and 2.0 (es2_API.xml) respectively. They are used to
generate dispatch.h and remap_helper.h for GLES. Together with
gl_and_es_API.xml, we have to maintain three sets of GLAPI XMLs.
This commit makes dispatch.h and remap_helper.h for GLES be generated
from gl_and_es_API.xml.
Reviewed-by: Brian Paul <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the 'f' suffix from a float literal.
- .float 0.0f+1.0
+ .float 1.0
This fixes the following compile error with clang:
error: unexpected token in directive
.float 0.0f+1.0
^
Note: This is a candidate for the stable branches.
Reviewed-by: Ben Widawsky <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
|
| |
|
|
|
|
|
| |
This doesn't really make any difference because all the colormasks
are the same upon context set-up, but it makes more sense.
|
|
|
|
|
|
|
| |
Fixes piglit hiz-depth-stencil-test-fbo-d0-s8 crash.
See http://bugs.freedesktop.org/show_bug.cgi?id=37907
NOTE: This is a candidate for the 7.11 branch.
|
|
|
|
|
|
|
|
| |
Optional parallel rendering of spans using OpenMP.
Initial implementation for aa triangles. A new option for scons is
also provided to activate the openmp support (off by default).
Signed-off-by: Brian Paul <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
After copy buffer on preGEN6, it is necessary to wait for the blit to
complete before returning data to the user.
This should fix the piglit test: copy_buffer_coherency (pre-GEN6).
Signed-off-by: Ben Widawsky <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
"reg" was set in only one case, virtual GRFs pre register allocation,
and would be unset and have hw_reg set after allocation. Since we
never bothered with looking at virtual GRF number after allocation
anyway, just use the same storage and avoid confusion.
|
|
|
|
|
|
|
| |
Besides separating out a logical step of the giant register allocator
function, this now communicates a bunch of the allocator information
through entries in brw_context, which will make this code partially
reusable for caching the expensive allocator setup.
|
|
|
|
|
|
|
| |
It's fewer pointers to track, and when we start caching the register
set, should be algorithmically better in the cache hit case (lookup in
a byte-per-register array, instead of a linear walk through
desctiption of register classes to find how to translate that class).
|
|
|
|
|
|
|
| |
This was a debugging aid at one point -- virtual grf 0 should never be
allocated, and it would be used if undefined register access occurred
in codegen. However, it made the confusing register allocation code
even more confusing by indexing things off of 1 all over.
|
|
|
|
|
| |
That code I wrote was impenetrable, and hard to write the first time.
This makes things a lot more obvious.
|
| |
|
|
|
|
| |
Fixes StarCraft 2 and Fallout 3 in Wine.
|
|
|
|
| |
Signed-off-by: Brian Paul <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This reverts an unnecessary part of commit 4683529048ee and fixes misrendering
and an assertion failure in Cogs.
Fixes freedesktop.org bug 39888.
Reviewed-by: Brian Paul <[email protected]>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
validate_program relies on validate_shader_program to fill in errMsg;
empirically, there exist cases where that doesn't happen.
While tracking those down may be worthwhile, initializing the string so
we don't try to ralloc_strdup random garbage also seems wise.
Fixes issues caught by valgrind while running some test case.
NOTE: This is a candidate for stable release branches.
Reviewed-by: Chad Versace <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
|
| |
|