Commit Graph

34535 Commits

Author SHA1 Message Date
Vinson Lee
d74f525060 mesa: s/uint/GLuint/ in _mesa_BindTransformFeedback prototype.
From http://www.opengl.org/registry/api/glext.h
GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);

Fixes MinGW build.
2010-05-10 22:58:23 -07:00
Chia-I Wu
3ecb8c20f8 gallium: Add llvmpipe support to st/egl.
Update Makefile rules for st/egl.
2010-05-11 12:42:22 +08:00
Brian Paul
fef6e36e07 mesa: more transform feedback infrastructure
Includes GL_ARB_transform_feedback2 which encapsulates transform feedback
state in objects.
2010-05-10 21:11:25 -06:00
Kristian Høgsberg
12bc39f30c intel: Also flush front buffer in glFinish() 2010-05-10 21:10:24 -04:00
Brian Paul
7b937cf47f llvmpipe: enable PIPE_CAP_INDEP_BLEND_ENABLE
This enables the GL_EXT_draw_buffers2 extension.
Tested with progs/tests/drawbuffers2.
2010-05-10 17:04:20 -06:00
Brian Paul
f795735f42 llvmpipe: fix up indexing of blend/colormask state for render targets 2010-05-10 17:04:19 -06:00
Brian Paul
47ecb51eb4 llvmpipe: update image dump/debug code 2010-05-10 17:04:19 -06:00
Brian Paul
bd34f61a7a llvmpipe: add, update, rewrap comments 2010-05-10 17:04:19 -06:00
Brian Paul
e0b5c6f921 gallivm/llvmpipe: move an old comment to a better location 2010-05-10 17:04:19 -06:00
Brian Paul
4e9c3bbc60 st/mesa: rename vars, added comments 2010-05-10 17:04:19 -06:00
Vinson Lee
0bf1ddd60a i915: Drop intelFlush().
This was missed in commit c4775a27e3.
Fixes i915 build.
2010-05-10 15:42:15 -07:00
Kristian Høgsberg
c4775a27e3 intel: Drop intelFlush()
Now that intel_flush() deosn't use the needs_mi_flush argument, we can
finally drop one of the two flush functions.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
a86e4852f4 intel: Only flush fake front buffer on API level glFlush()
Without this patch, any old intel_flush() call will cause a round trip to
the server and do a copy from fake to real front.  We only actually
guarantee that frontbuffer results show up when glFlush() ia called, so
move the flushing to intel_glFlush().

We also need to flush fake to front before getting new buffers, but
we just handle that manually.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
d8cfdbe894 intel: Don't mark front buffer dirty if we're only reading
When we call intel_prepare_render() from intelReadPixels(), we'll mark
the front buffer dirty.  That's silly, since we're only reading from it
and marking it dirty will cause us to copy from fake front to front
eventually.

Just clear the dirty flag after doing the read.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
32942d2b1c intel: Mark frontbuffer dirty in intel_prepare_render()
Now that we have intel_prepare_render() in place, we can use it to mark
the front buffer dirty if we're rendering to the front buffer once we
get there.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
2d00d16da7 glx: Only call DRI2 invalidate when necessary
We only need this when the server may have swapped the buffers or
when we receive an invalidate event from the server.  The default
behaviour is still that the DRI driver will invalidate its own buffers
when glViewport is called.

https://bugs.freedesktop.org/show_bug.cgi?id=27277
2010-05-10 17:48:11 -04:00
José Fonseca
7c5152c199 svga: Fill in is_resource_referenced callback. 2010-05-10 21:23:39 +01:00
José Fonseca
533ec3f667 gallivm: Silent warning. 2010-05-10 21:23:39 +01:00
José Fonseca
54b94ee96a gallivm: Add missing lvalue. 2010-05-10 21:23:38 +01:00
Brian Paul
3b2bdde1b2 st/mesa: only set prevInstWrotePsiz if translating a vertex program 2010-05-10 12:35:52 -06:00
Brian Paul
adbbaae7b9 st/mesa: additional assertions in dst_register() 2010-05-10 12:35:52 -06:00
Jakob Bornecrantz
a1cc4c1924 i965g: link with software- wrapper winsys and drm api helper 2010-05-10 17:06:02 +01:00
Jakob Bornecrantz
40faa56efb gallium: Add software drm api helper to scons build 2010-05-10 17:06:02 +01:00
Jakob Bornecrantz
8ff59f0987 gallium: Add pipe wrapper software winsys to scons build 2010-05-10 17:06:02 +01:00
Roland Scheidegger
bb7205895e i965g: fix resource creation recursion bug 2010-05-10 17:42:28 +02:00
Roland Scheidegger
804daedd75 i965g: add brw_state_debug.c to SConscript 2010-05-10 17:42:12 +02:00
Roland Scheidegger
433bdb1601 i965g: avoid void * arithmetic 2010-05-10 17:40:44 +02:00
José Fonseca
2e524fd8bc gallivm: Temporarily disable custom LLVMDumpValue on MSVC.
Seeing very weird crashes during std::cout initialization.

The fault probably lies in the way I build LLVM on MSVC, but disable for
now to allow more time to investigate.
2010-05-10 14:43:47 +01:00
José Fonseca
e3205b0540 gallivm: cosf/sinf are macros on MSVC.
So taking the function address does not work.
2010-05-10 08:31:54 +01:00
Vinson Lee
7c5e2672f0 mesa: Update comments in get_gen_es.py. 2010-05-09 22:22:53 -07:00
Brian Paul
e3d8d25ebf swrast: fix 16-bit/channel rendering
NOTE: This is a candidate for the 7.8 stable branch
2010-05-09 22:08:56 -06:00
Brian Paul
9b990c81c0 osmesa: use unsigned 16-bit/channel format 2010-05-09 22:08:33 -06:00
Brian Paul
980df845a3 osmesa: add mapi/glapi to SRC_DIRS to fix build 2010-05-09 21:19:42 -06:00
Brian Paul
969103124b mesa: fix typos, comment in signed 16-bit tex fetch code 2010-05-09 21:19:42 -06:00
Brian Paul
17e9671894 mesa: added unsigned 16-bit/channel tex format 2010-05-09 21:19:42 -06:00
Brian Paul
7a57af6d11 mesa: added comments for signed 16-bit formats 2010-05-09 21:19:42 -06:00
Brian Paul
8ea614832d mesa: use GL_RGBA16_SNORM for accum buffer 2010-05-09 21:19:42 -06:00
Brian Paul
279056f803 mesa: added texstore function for signed 16-bit formats 2010-05-09 21:19:42 -06:00
Brian Paul
6274bb865f mesa: added UNCLAMPED_FLOAT_TO_SHORT macro 2010-05-09 21:19:42 -06:00
Brian Paul
880e04ba74 mesa: add missing cases for signed 16-bit formats 2010-05-09 21:19:41 -06:00
Chia-I Wu
913d7c388d st/mesa: Ignore internal_format in st_context_teximage.
When internal_format and tex->format differ, st_finailize_texture will
surface_copy between surfaces with different formats.  This commit works
around the issue by ignoring internal_format.  A sane fix is needed
here.
2010-05-09 16:23:28 +08:00
José Fonseca
8ad3e0b55d gallivm: Add an alternative to LLVMDumpValue that works with Windows GUI apps. 2010-05-08 23:29:05 +01:00
José Fonseca
08b3179f48 gallivm: Fix mipfiltering with negative lod bias.
In particular, don't use the clamped lod to compute level + 1, or
lod in [-1, 0] range will actually interpolate with level 1.

This makes Mipfilter DCT pass 100%.
2010-05-08 23:29:05 +01:00
José Fonseca
ff7542ab90 gallivm: Actually do floor/ceil/trunc for scalars.
Also start axing the code duplication for scalar case. The olution is to
treat the scalar case specially in a few innermost functions, and leave
outer functions untouched.
2010-05-08 23:29:05 +01:00
José Fonseca
ffebc7f2a7 gallivm: Import the code to compute the minimax polynomials.
It's quite a pain to remember the details after a while, and it is quite
likely we'll want to use this again, either for different polynomial
orders or different functions, so commit it here.
2010-05-08 23:29:05 +01:00
José Fonseca
c376dadbb0 gallivm: Use a minimax polynomial for exp2 in range [0,1] instead [-0.5,5].
The advantage of range[-0.5, 0.5] is that it doesn't require floor (for
which intrinsics are only available in SSE4.1).

But the EXP opcode pretty much forces us to use floor, and there is a
good floor approximation around truncation available anyway.

This fixes EXP failures in VShader DCT.
2010-05-08 23:29:05 +01:00
José Fonseca
de088c6ae4 gallivm: Don't hardcode number of args twice. 2010-05-08 23:29:05 +01:00
Marek Olšák
d044ecbe76 r300g: follow pipe_rasterizer_state::light_twoside 2010-05-08 23:19:33 +02:00
Marek Olšák
084580fa43 r300g: follow pipe_rasterizer_state::point_size_per_vertex 2010-05-08 23:19:30 +02:00
Marek Olšák
34a5109bc2 r300g: move GA_POINT_MINMAX back to rs_state
This basically reverts commit 74f94e8fdf.
2010-05-08 23:03:45 +02:00