Commit graph

4287 commits

Author SHA1 Message Date
Michel Dänzer
bfbfcdd703 st/dri: Make sure the front left renderbuffer is there for texture-from-pixmap. 2009-08-27 20:27:28 +02:00
Michel Dänzer
d73d4cfcf1 st/xorg: Don't hardcode ExaPrepareCopy to fall back to software. 2009-08-27 20:27:28 +02:00
Michel Dänzer
05aa56a827 st/xorg: Flush context if necessary in ExaPrepareAccess. 2009-08-27 20:27:28 +02:00
Michel Dänzer
f3a540f6d7 st/dri: Only ask for fake front buffer for single buffer visuals by default. 2009-08-27 20:17:53 +02:00
Michel Dänzer
a33e9ea3b9 st/xorg/dri: Pass texture formats via the DRI2 protocol flags.
No need to guess.
2009-08-27 20:17:53 +02:00
Brian Paul
44e86dde6d Merge branch 'mesa_7_5_branch' 2009-08-27 09:14:09 -06:00
Brian Paul
32f95f8c17 gallium/util: added support for SRGB formats
Fixes glean/texture_srgb failure, bug #23449.
2009-08-27 09:10:38 -06:00
Brian Paul
f8ae968d28 gallium/util: added cases for SRGB formats 2009-08-27 09:09:56 -06:00
Cooper Yuan
ba87cbf2be r300g: Correct scissor setting, subtract 1 from window's width and height 2009-08-27 17:46:59 +08:00
Younes Manton
7d3b8231e1 nv04: Handle more Z formats.
Based on the patch from Luo Jinghua.
2009-08-26 20:07:51 -04:00
Chia-I Wu
c06699dd12 egl_softpipe: Make winsys and pipe screen per display.
This is to allow a driver to drive multiple displays.  Remove the use of
_EGL_PLATFORM_X along the way.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Chia-I Wu
49f245ea6b EGL_i915: Make struct drm_device per display.
This is to allow a driver to drive multiple displays.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-26 16:40:22 -06:00
Zack Rusin
a0966c41a9 st/xorg: create basic vertex shader 2009-08-26 12:50:47 -04:00
Zack Rusin
b324aacf13 st/xorg: create basic fragment shader 2009-08-26 12:50:47 -04:00
Jakob Bornecrantz
53b3cdaee2 st/dri: Add some debug code 2009-08-26 14:30:54 +02:00
Jakob Bornecrantz
57230d96ed st/xorg: Temporary fix for none stencil visuals
Should be replaced with something looking at the proper
	glx visual for the buffers.
2009-08-26 14:27:50 +02:00
Jakob Bornecrantz
23fe960be0 st/xorg: Find out correct type for depth stencil buffers 2009-08-26 13:45:31 +02:00
Jakob Bornecrantz
aab0bedb8c st/dri: Redo config generation 2009-08-26 12:29:28 +02:00
Michel Dänzer
b2e1b25881 st/xorg: Add support for dirty framebuffer region reporting.
Add a BlockHandler which flushes the context and reports the dirty region
gathered using the X server damage layer.

In the interim, with dirty region reporting only allocate textures for the
framebuffer and shared pixmaps (e.g. DRI2 buffers) and fall back to software
for other pixmaps. This will be improved in the future.
2009-08-26 13:18:37 +02:00
Ben Skeggs
1664bc1a37 st/dri: make the GL_ARB_map_buffer_range entrypoints available 2009-08-26 16:18:39 +10:00
Zack Rusin
7bc4744026 xorg: insert shaders into the cache 2009-08-25 14:22:26 -04:00
Zack Rusin
23b59d3b40 exa: add basic code to cache vertex and fragment shaders 2009-08-25 14:01:58 -04:00
Zack Rusin
c7653a8333 exa: check whether the op is accelerated 2009-08-25 13:23:08 -04:00
Zack Rusin
65f9d10342 xorg: revert bad merge 2009-08-25 09:58:51 -04:00
Michel Dänzer
d22bd1421c Add support for building the Xorg state tracker with scons.
scons ... statetrackers=xorg
2009-08-25 15:39:05 +02:00
Zack Rusin
ffe8cc6cef xorg: fix compilation 2009-08-24 18:42:16 -04:00
Zack Rusin
17076d700c xorg: start on code accelerating render 2009-08-24 18:39:01 -04:00
Zack Rusin
cd5c7bfd93 Merge branch 'master' of ssh://zack@git.freedesktop.org/git/mesa/mesa 2009-08-24 16:39:25 -04:00
Zack Rusin
534c133022 openvg: fix vgTransformPath with relative coords 2009-08-24 16:38:43 -04:00
Brian Paul
69170a4aae xlib: fix single buffer window resize bug
When a single-buffered window was resized the new window size was never
detected.  This fix that, but there's still a bug which causes window
contents corruption for certain window sizes...
2009-08-24 13:05:20 -06:00
Brian Paul
b5ecbbe636 xlib: fix single buffer window resize bug
When a single-buffered window was resized the new window size was never
detected.  This fix that, but there's still a bug which causes window
contents corruption for certain window sizes...
2009-08-24 12:58:49 -06:00
Cooper Yuan
a88678d3ee tgsi: Fix build error due to commit acc7da90 2009-08-24 19:50:38 +08:00
José Fonseca
02c523dfbb tgsi: Only free temp uregs.
Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
2009-08-24 12:11:24 +01:00
José Fonseca
acc7da9035 tgsi: Pass pipe_context as a parameter to ureg_create_shader.
Simplifies migration to tgsi_ureg.
(cherry picked from commit f574398c07c41cb8d31249a7186fc178ef7d552a)
2009-08-24 12:11:22 +01:00
Keith Whitwell
b570a7e6b6 tgsi: add generic instruction builder
When translating an incoming shader (rather than building one from scratch)
it's preferable to be able to call a single, generic instruction emitter
rather than figuring out which of the opcode-specific functions to call.
2009-08-24 11:33:38 +01:00
Cooper Yuan
7ee4f32dcd r300g: Set the vector address in the input memory for bypass_vs_clip_and_viewport case 2009-08-24 13:56:23 +08:00
Jakob Bornecrantz
54fb71b863 st/dri: Remove some debug prints 2009-08-22 02:16:02 +01:00
Jakob Bornecrantz
a3e59b9d06 st/dri: Find out if the drawable is a pixmap
Part of this code is disabled since no performance gains
	where detected with it enabled.

	This code only detects if it is a pixmap that it is
	rendering to on the st/xorg DDX since it sets the fake
	front to the same handle as front.
2009-08-22 02:16:02 +01:00
Jakob Bornecrantz
6237ac2412 st/dri: Fix frontbuffer rendering with DRI2 2009-08-22 02:16:01 +01:00
Jakob Bornecrantz
29165a2fcc st/xorg: Handle fake fronts correctly for pixmaps 2009-08-22 02:10:18 +01:00
Jakob Bornecrantz
a469b4c459 i915g: Remove bad assert on fence 2009-08-22 02:09:59 +01:00
Chia-I Wu
1f871a4d15 egl_softpipe: Do not flush unlinked context.
An unlinked context is destroyed after _eglMakeCurrent.  Flushing such
context would cause segfault.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-21 08:34:34 -06:00
Jakob Bornecrantz
9b3e5df900 st/egl: Add support for drmModeDirtyFB command if found 2009-08-21 15:04:21 +02:00
Christoph Bumiller
d7c55555ac nv50: use VTX_ATTR_nF for constant vtxelts 2009-08-20 21:41:39 +02:00
Christoph Bumiller
6d1f63f520 nv50: set vertex buffer limits 2009-08-20 21:41:39 +02:00
Christoph Bumiller
80c5ab1586 nv50: modify vbo format to hw translation, add BGRA swizzle 2009-08-20 21:41:39 +02:00
Brian Paul
ce723d8d8b tgsi: check for SOA dependencies in SSE and PPC code generators
Fall back to interpreter for now.  This doesn't happen very often.
2009-08-20 10:34:45 -06:00
Brian Paul
4c7c294fff tgsi: handle SOA dependencies for MOV/SWZ
SOA dependencies can happen when a register is used both as a source and
destination and the source is swizzled.  For example:

MOV T, T.yxwz; would expand into:

  MOV t0, t1;
  MOV t1, t0;
  MOV t2, t3;
  MOV t3, t2;

The second instruction will produce the wrong result since we wrote to t0
in the first instruction.  We need to use an intermediate temporary to fix
this.

This will take more work to fix for all TGSI instructions.  This seems to
happen with MOV instructions more than anything else so fix that case now
and warn on others.

Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317.
2009-08-20 10:28:22 -06:00
Brian Paul
5e6d21afa4 tgsi: added tgsi_full_instruction::Flags field
Users of the parser can make use of this.
2009-08-20 10:25:55 -06:00
Jakob Bornecrantz
e93d41d24f st/egl: Open the first drm node
At least its better then hardcoded to i915
2009-08-20 17:50:30 +02:00