Brian Paul
6830e6515c
mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-03-12 12:54:25 -06:00
Brian Paul
82195815ec
radeon: remove use of DD_FLATSHADE
...
This got missed earlier <sigh>.
2012-03-12 12:47:03 -06:00
Christopher Yeleighton
7f94d9819d
docs: fix up html tags in autoconf.html
...
http://bugs.freedesktop.org/show_bug.cgi?id=47241
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-03-12 12:22:34 -06:00
Brian Paul
534cbbe658
mesa: add more comments about textarget in framebuffer_texture()
2012-03-12 11:40:44 -06:00
Brian Paul
92c42d8170
mesa: renumber remaining DD_ constants
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
741bfef26c
mesa: remove unused DD_TRI_CULL_FRONT_BACK
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
d710bbcd74
mesa: remove unused DD_FLATSHADE
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
d269b1f310
mesa: remove unused DD_TRI_TWOSTENCIL
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
291e4104ae
mesa: remove _DD_NEW_x flags
...
They're no longer used anywhere.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
d2b849a227
tnl: stop using _DD_NEW_x flags
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
938aaec981
swrast: s/_DD_NEW_SEPARATE_SPECULAR/_MESA_NEW_SEPARATE_SPECULAR/
...
Another step toward removing the _DD_NEW_x flags
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
5edd7b8c46
mesa: define _MESA_NEW_SEPARATE_SPECULAR
...
This will replace the soon-to-be-removed _DD_NEW_SEPARATE_SPECULAR flag.
Note: there's a similar composite _MESA_NEW_NEED_EYE_COORDS flag set already.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
22d6268df7
i915: remove occurances of _DD_NEW_x flags
...
Just use the corresponding _NEW_x flags intead. The _DD_NEW_x flags
will be removed in a following patch.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12 11:40:43 -06:00
Brian Paul
f21dfa9d4b
mesa: remove ctx->Driver.ClearColor() hook
...
The driver Clear() function should just grab the clear color out of the
context.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
9c53fc593e
mesa/gdi: remove clear_color() function
...
Setup the clearing color in the clear() function.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
fdbb717b24
xlib: remove clear_color() function
...
Just setup the clearing color in clear_buffers().
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
c90ae6b501
radeon/r200: remove ClearColor driver functions
...
The state.color.clear value was never used anywhere.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
5f80218884
mesa: remove ctx->Driver.ClearDepth(), ClearStencil() driver hooks
...
Not used by any drivers. Drivers can easily access the values
from the Mesa context at glClear() time.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
e0ed951e13
radeon/r200: remove ClearDepth() and ClearStencil() driver hooks
...
The computed stencil.clear and depth.clear values aren't used anywhere.
Those fields have been removed too.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Brian Paul
5bb2059be7
radeon/r200: remove hyperz/fast clear testing code
...
The flags which were computed were never actually used.
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12 11:40:43 -06:00
Kenneth Graunke
5ac910c014
docs: Fix unclosed anchor tag in xlibdriver.html.
...
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47205
2012-03-11 23:39:54 -07:00
José Fonseca
901a118327
egl/drm: Include errno.h
...
Fixes scons build.
2012-03-11 19:51:00 +00:00
David Fries
b60120608f
Set close on exec flag FD_CLOEXEC
...
Set the close on exec flag when opening dri character devices, so they
will be closed and free any resouces allocated in exec.
Signed-off-by: David Fries <David@Fries.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11 19:05:50 +00:00
José Fonseca
5ea18503e7
mapi/glapi: Fix glDebugMessageCallbackARB arg type to GLDEBUGPROCARB
...
Necessary to prevent type mismatches on MinGW.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11 16:50:30 +00:00
José Fonseca
10d3b6500b
glapi/gen: Add support for pointer types.
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11 16:50:29 +00:00
José Fonseca
7221f52389
mesa: Prevent collision of ERROR define on Windows.
...
This issue might recur on other OSes. If so then it might be better
to remove the C-preprocessor magic, and use fully qualified defines
instead.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11 16:50:29 +00:00
José Fonseca
fa476782fd
include: Fix glDebugMessageCallbackARB's prototype.
...
Seems to be a bug in Khronos headers, as
http://www.opengl.org/registry/specs/ARB/debug_output.txt states userParam
is not a const pointer.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11 16:23:45 +00:00
Marek Olšák
bb1d126b23
mesa: expose ARB_debug_output
2012-03-10 21:42:06 +01:00
Marek Olšák
d7d0d2890a
mesa: display list dispatch for ARB_debug_output
2012-03-10 21:42:06 +01:00
Marek Olšák
0e4508e077
mesa: print GL errors via debug_output
2012-03-10 21:42:06 +01:00
nobled
ae4a8a59b7
mesa: implement the last of GL_ARB_debug_output
...
Store client-defined message IDs in a hash table,
and sort them by severity into three linked lists
so they can be selected by severity level later.
2012-03-10 21:42:06 +01:00
nobled
41308d9699
mesa: add struct for managing client debug namespaces
...
The final piece of the puzzle for GL_ARB_debug_output.
2012-03-10 21:42:06 +01:00
nobled
f6f3093940
mesa: add control for categories of application-provided messages
...
This state is needed for deciding whether or not to log
application messages with IDs that haven't been specifically
passed to glDebugMessageControlARB yet.
State for each individual ID number ever passed to
glDebugMessageControlARB (per-context) still needs to be added.
2012-03-10 21:42:06 +01:00
nobled
4667cb2162
mesa: add yet more context fields for GL_ARB_debug_output
2012-03-10 21:42:06 +01:00
nobled
c68f0b8cab
mesa: add glDebugMessageControlARB
...
Controlling the output of client-provided messages
isn't done yet.
2012-03-10 21:42:05 +01:00
nobled
76414cded8
mesa: add message-toggle booleans for GL_ARB_debug_output
2012-03-10 21:42:05 +01:00
nobled
5dd750d685
mesa: add some GL_ARB_debug_output functions
2012-03-10 21:42:05 +01:00
nobled
ed087ee498
mesa: add infrastructure for GL_ARB_debug_output
...
Marek v2: don't add the extension to extensions.c yet
2012-03-10 21:42:05 +01:00
Marek Olšák
3917503b9a
glapi: regenerate files
2012-03-10 21:42:05 +01:00
nobled
a0d6732182
glapi: add ARB_debug_output.xml
...
Marek v2: replace GLDEBUGPROCARB with void*
2012-03-10 21:42:04 +01:00
nobled
5ab088c7e2
mesa: split error handling into its own file
...
Also add _mesa_vsnprintf.
2012-03-10 21:42:04 +01:00
Kenneth Graunke
60218b604a
drirc: Add force_glsl_extensions_warn workaround for Unigine Heaven.
...
Unfortunately, Unigine Heaven 3.0 still needs this.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-09 15:21:10 -08:00
José Fonseca
105ef87842
svga: Disable bogus assertions concerning min_index/max_index.
...
min_index/max_index are merely conservative guesses, so we can't
make buffer overflow detection based on their values.
Tested-by: Jakob Bornecrantz <jakob@vmware.com>
2012-03-09 18:57:17 +00:00
Brian Paul
f5d0ced242
mesa: fix GL_LUMINANCE handling in glGetTexImage
...
There are several cases in which we need to explicity "rebase" colors
(ex: set G=B=0) when getting GL_LUMINANCE textures:
1. If the luminance texture is actually stored as rgba
2. If getting a luminance texture, but returning rgba
3. If getting an rgba texture, but returning luminance
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=46679
Also fixes the new piglit getteximage-luminance test.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-03-09 08:45:33 -07:00
Brian Paul
9917988223
svga: add null vs pointer check in update_need_pipeline()
...
Based on a patch submitted by Vic Lee. The other part of his patch
which checked the fs pointer wasn't needed.
This fixes a crash when clear() is called before any VS or FS is set.
But this can only happen when the driver is used without the Mesa
state tracker.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-03-09 08:25:18 -07:00
Christoph Bumiller
fb3cb5c2dd
nv50: add support for R8G8_R8B8 and G8R8_B8R8 formats
2012-03-09 15:21:01 +01:00
Christoph Bumiller
95df2d0ca7
nv50,nvc0: share the format table code
2012-03-09 15:19:28 +01:00
Christian König
63d53063f7
vl: handle DRI2GetBuffers reply with multiple buffers
...
This fixes a crash in XBMC, but we still doesn't see a picture.
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-09 12:45:09 +01:00
Christian König
85dbb22796
vl/mpeg12: make bitstream decoder more robust
...
Just another xine workaround.
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-09 12:44:51 +01:00
Christian König
9a3c2776ac
st/vdpau: fix two small memory leaks
...
Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-03-09 12:44:34 +01:00