aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* i965: Remove dead brw->wm.max_threads field.Eric Anholt2011-08-161-1/+0
|
* i965/vs: Add support for VUEs larger than a single URB write.Eric Anholt2011-08-161-8/+34
| | | | Fixes glsl-max-varyings.
* i965/vs: Avoid generating extra moves when setting up large ir_constants.Eric Anholt2011-08-162-51/+28
| | | | | We were also screwing up the types in the process, and just not emitting moves was easier.
* i965/vs: Fix types of varying outputs.Eric Anholt2011-08-161-0/+1
| | | | | | | | | 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.
* i965/vs: Handle assignment of structures/arrays/matrices better.Eric Anholt2011-08-162-21/+51
| | | | | This gets the right types on the instructions, as well as emitting minimal swizzles/writemasks.
* i965/vs: Don't forget to set up assignment condition code for arrays/structs.Eric Anholt2011-08-161-0/+4
| | | | Fixes vs-uniform-array-mat2-index-col-rd.
* i965/vs: Apply the gen6 math workaround for math1 instructions.Eric Anholt2011-08-161-6/+4
| | | | Fixes glsl-vs-masked-cos.
* i965/vs: Add support for if(any_nequal()) and if(all_equal()) on gen6.Eric Anholt2011-08-162-4/+22
| | | | Fixes vs-temp-array-mat2-col-rd.shader_test.
* i965/vs: Add support for dot product opcodes.Eric Anholt2011-08-161-0/+12
| | | | Fixes glsl-vs-dot-vec2.
* i965/vs: Fix the types of array/struct dereferences.Eric Anholt2011-08-161-0/+2
| | | | Fixes glsl-vs-arrays-3.
* i965/vs: Drop the assertion about dst.reg_offset == 0.Eric Anholt2011-08-161-1/+0
| | | | | Adding the offset is the right thing to do here, and fixes glsl-vs-mat-add-1.
* i965/vs: Use an appropriate swizzle on src regs from variables.Eric Anholt2011-08-161-0/+4
| | | | Fixes glsl-vs-if-bool.
* i965/vs: Fix support for zero uniforms in use.Eric Anholt2011-08-161-1/+2
| | | | | We were looking for attributes in the wrong place, and pointlessly doing the work on gen6 at all.
* i965/vs: Fix support for "IF" instructions by copying brw_fs_visitor.cpp.Eric Anholt2011-08-161-4/+10
| | | | Fixes glsl-vs-if-greater.
* i965/vs: Disable loops for now until rendering is generally correct.Eric Anholt2011-08-161-0/+2
|
* i965/vs: Fix ir_swizzle handling.Eric Anholt2011-08-161-1/+1
| | | | | I decided to refactor it a bit in adapting ir_to_mesa.cpp code, and mangled it. Fixes glsl-vs-cross-2.
* i965/vs: Allocate storage for "auto" variables just like temps.Eric Anholt2011-08-161-0/+4
| | | | Fixes segfault in glsl-vs-cross-2.
* i965/vs: Allow scalar values in assignments, too.Eric Anholt2011-08-161-1/+2
| | | | Fixes glsl-vs-all-02 and many other tests.
* i965/vs: Don't emit an extra copy of the vertex position.Eric Anholt2011-08-161-6/+8
| | | | Fixes glsl-vs-abs-neg, glsl-vs-all-01, and probably many other tests.
* i965/vs: Port the fix for clip plane writemasks from brw_vs_emit.c.Eric Anholt2011-08-161-1/+1
|
* i965/vs: Fix constant vector construction.Eric Anholt2011-08-161-3/+3
| | | | Fixes some issues noticed in glsl-vs-all-01.
* i965/vs: Start adding support for uniformsEric Anholt2011-08-169-48/+256
| | | | There's no clever packing here, no pull constants, and no array support.
* i965: Start adding the VS visitor and codegen.Eric Anholt2011-08-1614-37/+2781
| | | | | | 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.
* i965: Rename math FS_OPCODE_* to SHADER_OPCODE_*.Eric Anholt2011-08-166-68/+68
| | | | I want to just use the same enums in the VS.
* i965: Create a shared enum for hardware and compiler-internal opcodes.Eric Anholt2011-08-167-126/+120
| | | | | This should make gdbing more pleasant, and it might be used in sharing part of the codegen between the VS and FS backends.
* i965: Generate driver-specific IR for non-fragment shaders as well.Eric Anholt2011-08-161-5/+12
| | | | | | 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.
* mesa: ChooseTextureFormat() returns gl_format, not GLuintBrian Paul2011-08-161-1/+1
|
* radeon: Explain to the user what went wrong when built without libdrm.Eric Anholt2011-08-151-0/+6
| | | | | Before this commit, even LIBGL_DEBUG=verbose would just fail with: libGL error: failed to create dri screen
* glapi: generate ES dispatch headers from core mesaChia-I Wu2011-08-133-6/+26
| | | | | | | | | | 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: use gl_and_es_API.xml to generate GLES headersChia-I Wu2011-08-131-8/+8
| | | | | | | | | | | | 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]>
* x86-64: Fix compile error with clangChad Versace2011-08-111-1/+1
| | | | | | | | | | | | | | | 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]>
* mesa: fix initialization of GL_FOG_MODE in _mesa_init_driver_state()Brian Paul2011-08-111-1/+4
|
* mesa: fix ColorMask array index in _mesa_init_driver_state()Brian Paul2011-08-111-4/+4
| | | | | This doesn't really make any difference because all the colormasks are the same upon context set-up, but it makes more sense.
* swrast: don't try to do depth testing if there's no depth bufferBrian Paul2011-08-111-1/+2
| | | | | | | 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.
* swrast: initial multi-threaded span renderingAndreas Fänger2011-08-114-36/+78
| | | | | | | | 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]>
* intel: GetBuffer fixBen Widawsky2011-08-101-1/+6
| | | | | | | | | | 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]>
* i830: Add missing vtable entry for i830 from the hiz work.Carl Simonson2011-08-101-0/+7
|
* i965: Drop the reg/hw_reg distinction.Eric Anholt2011-08-105-36/+37
| | | | | | | "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.
* i965/fs: Factor out the register allocator setup to a separate function.Eric Anholt2011-08-102-66/+105
| | | | | | | 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.
* i965/fs: Simplify the register allocator using a map from RA reg to GRF.Eric Anholt2011-08-101-41/+38
| | | | | | | 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).
* i965/fs: Eliminate the magic nature of virtual GRF 0.Eric Anholt2011-08-104-31/+17
| | | | | | | 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.
* i965/fs: Use the new convenience interface for setting up reg conflicts.Eric Anholt2011-08-101-22/+7
| | | | | That code I wrote was impenetrable, and hard to write the first time. This makes things a lot more obvious.
* mesa: Add a convenience interface for register allocator conflicts setup.Eric Anholt2011-08-102-0/+23
|
* glsl_to_tgsi: improve assignment hackHenri Verbeet2011-08-091-3/+5
| | | | Fixes StarCraft 2 and Fallout 3 in Wine.
* swrast: silence unused var warningsFabio Pedretti2011-08-091-1/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* st/mesa: inline st_prepare_fragment_program in st_translate_fragment_programBryan Cain2011-08-082-179/+162
| | | | | | | | | 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]>
* mesa: whitespace changesBrian Paul2011-08-081-5/+8
|
* st/mesa: don't resolve stencil twiceChristoph Bumiller2011-08-071-1/+3
|
* mesa: In validate_program(), initialize errMsg for safety.Kenneth Graunke2011-08-051-1/+1
| | | | | | | | | | | | | | | 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]>
* intel: Fix warnings from gl_constant_parameter changes.Eric Anholt2011-08-053-11/+9
|