Brian Paul
246d39059e
llvmpipe: update driver's provoking vertex code
...
Note that the lp_setup_vbuf.c code is very, very similar to the
corresponding code in softpipe. It could probably be shared.
2010-05-05 18:19:30 -06:00
Brian Paul
cb136a93ab
gallium: rework provoking vertex code
...
Builds on commit ddb0e18f6c
and fixes
regressions in glean clipFlat test.
We assume that Gallium drivers observe flatshade_first for all triangles
and that all the assorted per-triangle calls in the 'draw' module also
follow flatshade_first. Everything else builds on those rules.
Gallium does not use follow flatshade_first for GL quads, quad strips
and polygons; the "last" vertex is always the provoking vertex for those
prims. So now there are separate QUAD_FIRST_PV and QUAD_LAST_PV macros
in the draw primitive decomposition code instead of one QUAD macro.
2010-05-05 18:19:06 -06:00
Marek Olšák
a8bb495629
tgsi: make dumping work on non-debug builds
2010-05-05 23:33:44 +02:00
Marek Olšák
0ad541a684
st/mesa: fix per-vertex point size
...
This fixes FDO bug #27343 .
2010-05-05 23:04:44 +02:00
Brian Paul
5c2f6a3e9f
llvmpipe: added a new assertion as a hint to Coverity
...
Looks like coverity found a false positive for an out of bounds array write.
2010-05-05 08:22:12 -06:00
Xavier Chantry
6ddd640365
nouveau: only advertise PIPE_FORMAT_DXT* if s3tc available
2010-05-05 14:39:59 +02:00
José Fonseca
8ddf93e84c
graw-xlib: Revert the output dir lib change.
2010-05-05 09:40:59 +01:00
Vinson Lee
e3ce10f7ac
st/mesa: Remove unnecessary headers.
2010-05-05 01:14:25 -07:00
Vinson Lee
8191e5ae65
mesa: fpclassify dummy definition not needed on Mac OS X.
2010-05-05 00:49:25 -07:00
Vinson Lee
bc751b5be0
svga: Remove unnecessary header.
2010-05-04 23:06:34 -07:00
Vinson Lee
e768d11ca0
draw: Remove unnecessary header.
2010-05-04 23:04:13 -07:00
Vinson Lee
57f0a25c27
util: Remove unnecessary headers.
2010-05-04 23:02:05 -07:00
Vinson Lee
dbcd5622d5
llvmpipe: Remove unnecessary headers.
2010-05-04 22:57:24 -07:00
Vinson Lee
3234066be2
r300g: Fix memory leak on error path.
2010-05-04 22:55:00 -07:00
Eric Anholt
ce914fff08
i965: When an RB gets a new region, clear the old from the state cache.
...
This prevents memory usage explosion in blender due to the state cache
hanging on to old fake frontbuffer regions. Sigh at blender still
using frontbuffer rendering.
Bug #24119 .
2010-05-04 22:06:12 -07:00
Eric Anholt
453f0b1f24
intel: Don't tile textures so small that size is blown up by over 2x.
...
Noted on the mailing list for an app that puts each glyph for its text
into a separate texture.
2010-05-04 22:06:12 -07:00
Chia-I Wu
781d56eac4
progs/egl: Fix eglut with OpenGL ES 2.0.
...
EGL_OPENGL_ES2_BIT is not set when choosing OpenGL ES 2.0 configs.
2010-05-05 12:29:19 +08:00
Brian Paul
53a53b2549
osmesa: remove unused var
2010-05-04 21:59:54 -06:00
Brian Paul
d148e25953
mesa: remove some color index code
2010-05-04 21:59:54 -06:00
Brian Paul
00b7dcd27a
mesa: remove unused renderbuffer adaptor code
2010-05-04 21:59:54 -06:00
Brian Paul
7f07ac80eb
mesa: remove renderbuffer adaptor calls
...
Was only used for OSMesa but no longer needed.
2010-05-04 21:59:54 -06:00
Brian Paul
36b3a8bd5a
osmesa: fix OSMesa for CHAN_BITS=32
...
CHAN_BITS=16 still broken.
NOTE: this is a candidate for back-porting to the 7.8 stable branch.
2010-05-04 21:59:54 -06:00
Chia-I Wu
719f7049bb
st/mesa: Fix texture-from-pixmap.
...
Remember the size of the level=0 mipmap image. Do not call
util_format_get_component_bits when st_context_teximage is called to
release a texture image.
2010-05-05 11:58:04 +08:00
Chia-I Wu
a6ec153830
mesa: Fix build of ES overlay.
...
ES overlay is built with FEATURE_ES1 or FEATURE_ES2, and is built
without FEATURE_GL. Fix the build by always building OpenGL ES sources,
but test for FEATURE_ES1 or FEATURE_ES2. Also, define symbols that are
missing because FEATURE_GL is not defined.
2010-05-05 11:57:46 +08:00
Brian Paul
b29b27c118
st/mesa: remove commented-out struct field
2010-05-04 21:19:30 -06:00
Brian Paul
382eb1a728
gallium: remove trailing comma in enum list
2010-05-04 21:18:55 -06:00
Brian Paul
791c3395ab
mesa: add a dummy definition for fpclassify() if needed
2010-05-04 21:14:42 -06:00
Brian Paul
bef9460dcd
mesa: remove trailing comma in enum list
...
Some compilers complain about this.
2010-05-04 21:12:01 -06:00
Brian Paul
1169d8619a
llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
2010-05-04 20:46:27 -06:00
José Fonseca
b2e343daab
tests/raw: Get it building with scons.
2010-05-05 02:39:08 +01:00
José Fonseca
ddb0e18f6c
draw: Preserve the provoking vertex both when decomposing and clipping.
...
Based on John Lawless' feedback.
2010-05-05 00:46:13 +01:00
Brian Paul
dc1c33b448
draw: Adjust wideline vertex coords for D3D.
2010-05-05 00:46:13 +01:00
José Fonseca
f816937d77
scons: Add support for Mingw64.
2010-05-05 00:46:12 +01:00
Brian Paul
c6fdb950e9
st/mesa: need to pass srcLevel to st_texture_image_copy()
...
Fixes a regression in mipmap setup.
2010-05-04 17:25:36 -06:00
Brian Paul
87022efb4f
llvmpipe: fix broken compressed cube maps
...
When the cube faces were stored in a compressed format, the img_stride
values were wrong and didn't match the per-face size computed in the
tex_image_face_size() function. This caused bad rendering or segfaults.
2010-05-04 17:17:04 -06:00
Brian Paul
0f0c0368fa
gallium/util: added is_format_compressed()
2010-05-04 17:17:04 -06:00
Brian Paul
477b0d838b
llvmpipe: do some null pointer checking
2010-05-04 17:17:04 -06:00
Brian Paul
0671c6b589
llvmpipe: add some tests for malloc() returning NULL.
...
Start propogating NULL pointers from allocation functions and checks for
NULL in the callers...
2010-05-04 17:17:04 -06:00
Brian Paul
2649d64fee
progs/demos: set line width back to 1.0 in DrawBox()
2010-05-04 17:17:04 -06:00
Kristian Høgsberg
6a191b2713
glxinfo: Get visual info when an fbconfig has an associated visual
2010-05-04 15:29:25 -04:00
Kristian Høgsberg
9e4f2da848
Fix gles .pc file generation
2010-05-04 14:13:46 -04:00
Kristian Høgsberg
ceffd7b924
Add egl.pc file
2010-05-04 14:13:46 -04:00
Marek Olšák
88512e837e
r300g: advertise S3TC only when it's available in Gallium
2010-05-04 20:09:53 +02:00
Wiktor Janas
677a604556
u_blitter: fix creating fragment shaders
...
See FDO bug #27887 .
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-05-04 19:56:44 +02:00
Kristian Høgsberg
06c72da97a
intel: Update renderbuffers unconditionally in intelSetTexBuffer2()
2010-05-04 13:35:51 -04:00
Brian Paul
2b53f4a9c6
st/mesa: return success/fail from guess_and_alloc_texture()
...
Before we looked at stObj->pt to see if we may have run out of memory,
but that's not a good indicator. This fixes the spurious GL_OUT_OF_MEMORY
errors that could arise before.
2010-05-04 10:32:02 -06:00
Brian Paul
c2b47a7557
st/mesa: improved st_texture_image_copy()
...
No longer need to search for the src mipmap level.
Added assertions.
Updated comments.
Moved debug code into separate function.
2010-05-04 10:29:42 -06:00
José Fonseca
dad962bafe
mesa/st: Fill in native program limits.
...
In the lack of more fine grained capabilities in Gallium, assume that if
the pipe driver supports GLSL then native limits match Mesa software
limits.
(cherry picked from commit 40a90cd11234a09c2477f5c9984dd6d9fac3f52c)
2010-05-04 15:41:19 +01:00
Kristian Høgsberg
1c920c6176
intel: Enable GL_EXT_framebuffer_object for gles2
2010-05-04 09:22:35 -04:00
José Fonseca
ec43b2eb45
gallivm: Proper implementation of TXL opcode.
2010-05-04 13:51:54 +01:00