Thomas Hellstrom
cd151effe6
svga: Add a winsys callback to get the svga_winsys_context
...
The winsys may need to extract the svga_winsys_context from a
pipe_context. Add a function to enable that functionality.
Cherry-picked from commit e8a8c5e339
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2010-05-31 22:34:59 +01:00
José Fonseca
056ae405b6
tgsi: Drop uses_fogcoord and uses_frontfacing from tgsi_scan.
...
It was not used anywhere; the code was buggy (it didn't take care of
indirect registers and could potential cause buffer underflows) and the
same effect can now be easily achieved by just by looking at
input_semantic_name[] and input_usage_mask[].
2010-06-01 16:39:04 +01:00
José Fonseca
2c67e754cf
tgsi: Remove tgsi-instruction-set.txt.
...
Deprecated by tgsi.rst, and no point in keeping it around if it's not
being updated.
2010-06-01 16:39:04 +01:00
José Fonseca
149cb7682e
llvmpipe: Don't waste time interpolating unused input channels.
2010-06-01 16:39:03 +01:00
José Fonseca
abe4f3d1aa
tgsi: Determine which shader input channels are effectively.
...
TGSI's UsageMask flag is never set. We can move this logic into
tgsi_ureg, but there there are still cases where's not used, so this
seems a better place for now.
2010-06-01 16:39:03 +01:00
José Fonseca
d9c6ebb4fe
gallium/docs: Update FRAC -> FRC.
2010-06-01 16:39:03 +01:00
Brian Paul
1bbf803e3b
mesa: use split_location_offset() in GetUniform() functions
...
Commit 5d0e136eff exposed a long-standing
bug in the glGetUniform*() code paths. We weren't properly decoding
the location parameter.
Fixes fd.o bug/regression 28344
Note: this patch should go into the 7.8 branch after the above-mentioned
commit.
2010-06-01 09:02:10 -06:00
Thomas Hellstrom
7356d1c140
st/xorg: Fix Xv cliprect scaling.
...
Due to a quantization error, different cliprects of scaled video windows may
not have identical x / y scale.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-05-31 18:33:09 +01:00
Thomas Hellstrom
195c476f9f
st/xorg Avoid advertizing rotation / reflection support.
...
We don't support it yet since we don't implement the shadow allocate
functions.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-05-31 18:33:05 +01:00
Chia-I Wu
79e5bea3cb
vgapi: Generate PIC objects.
...
Fixes "...; recompile with -fPIC" error on x86-64. See fdo 28336.
2010-06-01 07:33:29 +08:00
José Fonseca
4e6c880ea2
glapi: Generate PIC objects.
...
Fixes fdo 28336.
2010-05-31 22:11:38 +01:00
José Fonseca
524ec6464d
llvmpipe: Show fs's TGSI when LP_DEBUG=tgsi is set.
2010-05-31 21:58:38 +01:00
Chia-I Wu
a27690931b
st/egl: Use stamps only to avoid unnecessary geometry update.
...
resource_surface_add_resources should still be called even when the
stamps match. For example, a caller may ask for two different sets of
attachments.
2010-05-31 20:06:59 +08:00
Chia-I Wu
593cf8b54c
mesa: Fix excess initializers in get.c table.
2010-05-31 17:37:42 +08:00
Dave Airlie
8d789be034
swrast: add TFP support to swrast.
...
This adds TFP support to the swrast driver, with this I can run gnome-shell inside Xephyr slowly. I've no idea why I did it, and g-s has other rendering issues under swrast, but it might be useful to hook up llvmpipe later. I've no idea if I even want to commit it at this point.
An enhanced version might just pass the pointer in the indirect rendering case
and avoid the memcpy.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-05-31 19:28:08 +10:00
Dave Airlie
47de9adece
gallium: fix TFP on gallium
...
This fixes an uninitialised value use in the dri2 st when doing TFP.
It uses the driContextPriv which isn't initialised at alloc time.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-05-31 19:28:08 +10:00
Chia-I Wu
7ede18abac
st/egl: Update KMS backend to use resource_surface.
2010-05-31 17:03:58 +08:00
Chia-I Wu
e4400a48a6
st/egl: Update GDI backend to use resource_surface.
2010-05-31 17:03:58 +08:00
Chia-I Wu
f38a20b461
st/egl: Update ximage backend to use resource_surface.
2010-05-31 17:03:58 +08:00
Chia-I Wu
e1e0307c91
st/egl: Add helper functions for use by backends.
...
There is only resource_surface for now. It helps manage the resources
of a software-based native surface such as XImage or GDI.
2010-05-31 17:03:58 +08:00
Chris Wilson
8accf0a891
intel: Initialize batch->reserved_space on allocation
...
Fixes the assert (and buffer overrun):
glknots: intel_batchbuffer.c:164: _intel_batchbuffer_flush: Assertion
'used >= batch->buf->size' failed.
Reported in bug:
Bug 28274 - xscreensaver's glknots hangs GPU (945GME/Pineview)
https://bugs.freedesktop.org/show_bug.cgi?id=28274
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-05-31 09:58:25 +01:00
Chia-I Wu
636f7becfd
targets/egl: Add SConscript for egl-apis.
...
It will build api_OpenVG.dll on Windows.
2010-05-31 13:28:03 +08:00
Chia-I Wu
e5b5d84e8a
st/vega: Use SConscript for Windows build.
...
Fix several portability issues and add SConscript for Windows build.
2010-05-31 13:28:01 +08:00
Chia-I Wu
a2f3115307
gallium/util: Define isfinite and isnan for MSVC.
...
Define isfinite and isnan to _finite and _isnan respectively for MSVC.
Those macros are needed by st/vega.
2010-05-31 13:27:58 +08:00
Chia-I Wu
60558b1594
mapi/vgapi: Add SConscript for Windows build.
2010-05-31 13:27:53 +08:00
Chia-I Wu
f6f9d1014b
st/egl: Use OS-specific module suffices.
...
At least, .dll is used on Windows.
2010-05-31 13:27:48 +08:00
Chia-I Wu
ec0bab3a51
targets/egl: Add SConscript for egl_gdi_swrast.
...
egl_gdi_swrast uses st/egl/gdi and winsys/sw/gdi to provide an EGL
driver for Windows.
2010-05-31 13:27:46 +08:00
Chia-I Wu
a8e195ec24
st/egl: Add GDI backend.
...
The backend uses Windows GDI driver to provide a software EGL
implementation on Windows.
2010-05-31 13:27:44 +08:00
Chia-I Wu
1e6c10f4be
egl: Use SConscript for Windows build.
...
Fix several portability issues and add SConscript for Windows build.
2010-05-31 13:27:41 +08:00
Chia-I Wu
0d820fc203
egl: Use khronos types for EGL_MESA_screen_surface.
...
That is, use khronos_uint32_t instead of uint32_t.
2010-05-31 11:31:08 +08:00
Chia-I Wu
ba26631d0d
Define PUBLIC to dllexport on MSVC.
...
Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
2010-05-31 11:31:07 +08:00
Chia-I Wu
14f1157a2e
Update KHRONOS_APICALL for _WIN32 platform.
...
Use __declspec(dllexport) when KHRONOS_DLL_EXPORTS is defined.
2010-05-31 11:31:07 +08:00
Chia-I Wu
d2cb999045
Always define int32_t in compiler headers.
...
eglplatform.h no longer defines int32_t.
2010-05-31 11:00:01 +08:00
Chia-I Wu
fa97399f42
glapi: Update SConscript for Windows.
...
Define macros to enable dllexport and thread support. Adjust the output
path of mapi sources.
2010-05-31 10:53:29 +08:00
Chia-I Wu
59f8dca7cf
Update OpenGL ES headers.
2010-05-31 10:43:17 +08:00
Chia-I Wu
8e1b375a8d
autoconf: Remove unused APIS.
...
It was used by glapi, which has been moved to mapi.
2010-05-31 10:43:00 +08:00
Chia-I Wu
c08449b78e
mesa: Fix/add feature test to shader.c.
...
Those macros used by _mesa_init_shader_dispatch are not available when
FEATURE_GL is not defined.
2010-05-31 10:40:56 +08:00
Marek Olšák
21dfcde3ff
r300g: set correct pitch in libdrm
...
to match what DDX sets. This prevents some flushes from occuring.
2010-05-31 04:16:24 +02:00
Marek Olšák
7a4601db52
r300g: remove texture usage transfer flag
2010-05-31 04:16:24 +02:00
Marek Olšák
4182d3ea00
r600g: remove unused struct r600_state
...
What was the purpose of it?
2010-05-31 04:16:24 +02:00
Vinson Lee
33c2dbe5b0
vbo: Remove unnecessary header.
2010-05-30 15:47:21 -07:00
Vinson Lee
1202f17063
r600g: Remove unnecessary headers.
2010-05-30 15:30:05 -07:00
Alex Deucher
3b869b4cdb
r600g: RS880 is r6xx-based
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-30 16:08:55 -04:00
José Fonseca
7f1c007840
llvmpipe: Remove unused framebuffer stuff from the rasterizer.
2010-05-30 16:39:14 +01:00
José Fonseca
2b7fbccfdc
llvmpipe: Don't force a linear to tiled conversion after rasterization on debug builds.
...
Only do this if runtime debugging flags to show subtiles/tiles are set.
2010-05-30 16:39:06 +01:00
José Fonseca
82715bb227
llvmpipe: Call llvmpipe_set_texture_tile_layout only when necessary.
...
Like the other places.
2010-05-30 16:38:46 +01:00
José Fonseca
b57e18c35c
util: Add inline function for approximate floating point comparison.
2010-05-30 16:38:41 +01:00
José Fonseca
f503b3dd9d
llvmpipe: Use pointer_to_func() instead of custom wrappers.
2010-05-30 16:38:23 +01:00
José Fonseca
4b29da1226
draw: Use pointer_to_func() instead of custom wrappers.
2010-05-30 16:38:03 +01:00
José Fonseca
6f67a71aad
util: Generic pointer to func conversion helper.
...
That observes strict-aliasing rules.
2010-05-30 16:36:08 +01:00