Commit Graph

35430 Commits

Author SHA1 Message Date
Kristian Høgsberg
2168b87b51 egl_dri2: Support _EGL_PLATFORM_DRM
This lets the egl_dri2 driver initialize on just a DRM fd.
2010-07-08 20:10:37 -04:00
Vinson Lee
7595733677 glslcompiler: Fix build. 2010-07-08 16:06:01 -07:00
Vinson Lee
6dd7d654db Merge branches 'master' and 'master' of ssh://git.freedesktop.org/git/mesa/mesa 2010-07-08 15:58:23 -07:00
Marek Olšák
392a2515c0 r300g: fix texturing with negative lod bias
This should fix FDO bugs #28437 and #28625.
2010-07-09 00:16:49 +02:00
Marek Olšák
61a26cdfdc r300g: store/return the stride for winsys_handle in winsys 2010-07-08 22:39:52 +02:00
Eric Anholt
8a3f2eb9e6 i965: Add disasm for SEND mlen/rlen on Sandybridge. 2010-07-08 13:30:56 -07:00
Zhenyu Wang
20be3ff576 i965: Add 'wait' instruction support
When EU executes 'wait' instruction, it stalls and sets notification
register state. Host can issue MMIO write to clear notification
register state to allow EU continue on executing again.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-07-08 12:50:53 -07:00
Eric Anholt
a3cc7585ea i965: Fix disasm of a SEND's mlen and rlen on Ironlake. 2010-07-08 12:50:53 -07:00
Zhenyu Wang
3f906621da i965: Add decode for Sandybridge DP write messages. 2010-07-08 12:50:53 -07:00
Zhenyu Wang
0446679551 i965: Add definitions for Sandybridge DP write/read messages. 2010-07-08 12:50:53 -07:00
Marek Olšák
9cc6b5b043 r300g: fix transfering compressed textures 2010-07-08 21:37:04 +02:00
Eric Anholt
e72b87736d intel: Update intel_decode.c from intel-gpu-tools.
This came from commit cf255e382d147fe3ca450f0dcec3525190e7dcbc
2010-07-08 12:12:54 -07:00
Brian Paul
b273928140 gallium: bump PIPE_MAX_SHADER_INPUTS/OUTPUTS to 32 2010-07-08 11:03:54 -06:00
Marek Olšák
62c631b205 r300g: add a function for marking framebuffer atoms as dirty 2010-07-08 18:02:30 +02:00
Marek Olšák
f9e8cdc145 r300g: minor fixups 2010-07-08 18:02:30 +02:00
Brian Paul
3751e6e1fc glsl: fix 'if ((x=foo()) > 1.0)' bug
Fixes fd.o bug 27216.  May also be the root cause of fd.o bug 28950.

We weren't propogating the storage info for the x=foo() expression up
through the IR tree to the inequality expression.

NOTE: This is a candidate for the Mesa 7.8 branch.
2010-07-08 09:22:54 -06:00
Brian Paul
7c6a897275 st/mesa: additional assertions in st_translate_mesa_program() 2010-07-08 08:51:22 -06:00
Zack Rusin
396f2cd94f slang: fix typos 2010-07-08 00:33:31 -04:00
Zack Rusin
f11e25ee95 slang: add some comments related to geometry shaders 2010-07-08 00:28:29 -04:00
Zack Rusin
7c42390453 gs: inject const int gl_VerticesIn at link time 2010-07-08 00:28:29 -04:00
Brian Paul
6988f65e43 mesa: initial support for new GL 3.0 texture formats 2010-07-07 20:26:33 -06:00
Brian Paul
d95b40759e gallivm: restore const qualifier 2010-07-07 17:36:43 -06:00
Brian Paul
b17fba92db gallivm: fix cube map LOD computation
First, this undoes commit e503af4baa
so we use iround() in lp_build_nearest_mip_level().

Second, in lp_build_sample_general() we need to check if we're sampling
a cube map before anything else.  Choose the cube face and then recompute
the partial derivatives of (S,T) with respect to the chosen cube face.
Before, we were using the directional (S,T,R) derivatives to compute
the LOD.

Third, work around an apparent bug in LLVM 2.7 where setting the lod
variable to a const(0) value results in bad x86 code.  See comments in
the code.
2010-07-07 17:33:43 -06:00
Brian Paul
9755539116 st/mesa: fix sampler max_lod computation
This change makes gallium behave like other GL implementations and fixes
a conformance failure.
2010-07-07 13:05:35 -06:00
Andre Maasikas
51c438feb7 r600: workaround 3 comp GL_SHORT vertex attribute format on r700
guess it's a hw errata?
2010-07-07 21:32:07 +03:00
Brian Paul
84a5f27b9b glsl: use Elements() in arrays instead of sentinal values
The _slang_*_output_name() functions had one too many loop iterations
because of the sentinal end-of-list values in the vertOutput array.
Just use Elements() everywhere.
2010-07-07 09:00:00 -06:00
Vinson Lee
c89ea8f213 llvmpipe: Don't build lp_test_round when using MSVC.
lp_test_round uses the math functions round and trunc, which aren't
available with MSVC.

Fixes the MSVC build for now.
2010-07-06 17:25:39 -07:00
Vinson Lee
2e423ac074 llvmpipe: Add lp_test_round to SCons build. 2010-07-06 16:18:32 -07:00
Vinson Lee
ff318c45ec egl: Remove unnecessary headers. 2010-07-06 16:02:49 -07:00
Vinson Lee
9ead6c129f draw: Remove unnecessary header. 2010-07-06 15:49:40 -07:00
Vinson Lee
01985390be gallivm: Remove unnecessary header. 2010-07-06 15:45:31 -07:00
Marek Olšák
98cb202444 util: print help for debug options on non-debug builds
I'd like to see the help when I request it.
2010-07-07 00:12:49 +02:00
Brian Paul
e503af4baa gallivm: use trunc, not round in lp_build_nearest_mip_level()
Fixes fd.o bug 28036 (piglit fbo-cubemap.c regression)
2010-07-06 13:22:57 -06:00
Brian Paul
7743791da0 llvmpipe: add test program for round(), trunc(), floor(), ceil() 2010-07-06 11:36:37 -06:00
Brian Paul
e834c48100 gallivm: finish implementation of lp_build_iceil()
Plus fix minor error in lp_build_iceil() by tweaking the offset value.
And add a bunch of comments for the round(), trunc(), floor(), ceil()
functions.
2010-07-06 11:36:37 -06:00
Zack Rusin
99c8d9b6da llvmpipe: disconnect vertex texture sampling from the setup
it was wrong to put this in the fs paths, but it was easier to just
stuff it along the fragment texture sampling paths. the patch
disconnects vertex texture sampling and just maps the textures
before the draw itself and unmaps them after.
2010-07-06 13:29:04 -04:00
Zack Rusin
ca88683459 draw: make sure softpipe doesn't crash with vertex tex sampling
softpipe doesn't implement the draw's llvm tex sampling interface
so make sure draw can handle the cases where the driver doesn't
implement the interface
2010-07-06 13:29:04 -04:00
Zack Rusin
01eebfe1b6 draw: implement vertex texture sampling using llvm 2010-07-06 13:29:04 -04:00
Tom Stellard
ce929d8210 r300/compiler: Implement KILP opcode.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-07-06 18:45:32 +02:00
José Fonseca
88b6abfba5 gallivm: Use SSE4.1's BLENDV instructions for lp_build_select(). 2010-07-06 11:53:15 +01:00
José Fonseca
b3d4e5bd26 gallivm: Fix 8bit comparisons. 2010-07-06 11:53:15 +01:00
Alan Hourihane
5a723afabb llvmpipe: ensure all bins are reset avoids memory corruption. 2010-07-06 11:42:18 +01:00
Chia-I Wu
32a9b2799e mesa: Always initialize transform feedback state.
Assert ctx->Driver.NewTransformFeedback if the feature is enabled;  Use
the default callbacks otherwise.  The rest of core mesa expects the
state to be initialized.
2010-07-06 17:03:32 +08:00
Chia-I Wu
f2aa361f3b egl: Rework driver loading.
Driver loading is now splitted into two stages.  In the first stage, an
_EGLModule is created for each driver: user driver, default drivers, and
all files in the search directories that start with "egl_".  Modules are
not loaded at this stage.

In the second stage, each module is loaded to initialize a display.  The
process stops at the first module that can initialize the display.

If eglGetProcAddress is called before eglInitialize, the same code path
will be taken to find the first module that supports
EGL_DEFAULT_DISPLAY.  Because we do not want to initialize the display,
drv->Probe is used instead in this case.
2010-07-06 16:16:39 +08:00
Chia-I Wu
cf588ab3f1 st/egl: Add support for !GLX_DIRECT_RENDERING.
st/egl uses GLX code for DRI2 support.  It should honor
GLX_DIRECT_RENDERING.

Also updates configure.ac to define GLX_DIRECT_RENDERING for st/egl.
2010-07-06 15:27:09 +08:00
Brian Paul
abd5627a6a mesa: initial support for unnormalized integer texture formats
As defined by GL_EXT_texture_integer.
2010-07-05 20:14:39 -06:00
Corbin Simpson
e54164b4e3 auxiliary/util: Add SM3 meta-cap list. 2010-07-05 14:59:12 -07:00
Roland Scheidegger
3ed0a099c7 llvmpipe: wait for queries being finished when asked for it or before deletion
This fixes bug #28757, though does not yet address the issue that fences aren't
always emitted.
2010-07-05 17:17:50 +02:00
Vinson Lee
a3b0aaf26f i915g: Remove unnecessary header. 2010-07-04 11:34:15 -07:00
Jakob Bornecrantz
2d818ed0f8 i915g: Add flag to not send commands to hw 2010-07-04 13:32:02 +01:00