Brian Paul
69861ae497
mesa: move GLSL uniform functions into new source file
2010-05-26 22:30:10 -06:00
Vinson Lee
655c9a0533
st/mesa: Remove unnecessary headers.
2010-05-26 20:12:33 -07:00
Will Dyson
055750fafb
Enable hardware mipmap generation for radeon.
...
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm).
Signed-off-by: Maciej Cencora <m.cencora@gmail.com >
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-05-26 18:17:28 -04:00
Will Dyson
a9ee956511
Fix image_matches_texture_obj() MaxLevel check
...
When generating or uploading a new (higher) mipmap level for an image,
we can need to allocate a miptree for a level greater than
texObj->MaxLevel.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com >
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-05-26 18:17:28 -04:00
Will Dyson
f49da110a8
Fallback to software render if there is no miptree for an image
...
This can happen when checking if a software fallback for a higher level
operation (such as GenerateMipmap) is needed.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com >
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-05-26 18:17:28 -04:00
Marek Olšák
76034aaf65
r300g: decouple drawing code and two-sided stencil refvalue fallback
...
It's now more separate from the rest of the driver and it can be disabled
by commenting out just 1 line. Well, I couldn't make the previous version
work with SW TCL reliably, that's the reason of this little rework.
2010-05-27 00:08:42 +02:00
Marek Olšák
1345c5bf94
r300g/swtcl: handle large index count properly
...
This fixes piglit/draw-elements.
2010-05-26 22:39:19 +02:00
Marek Olšák
3a6fd21917
r300g/swtcl: force vertex prefetching for non-indexed primitives
2010-05-26 22:22:52 +02:00
Marek Olšák
55a6d37434
r300g/swtcl: move emitting AOS to prepare_for_rendering
2010-05-26 22:22:52 +02:00
Marek Olšák
500160a3c9
r300g/swtcl: vbo transfer sanity checks
2010-05-26 22:22:52 +02:00
Marek Olšák
a81730cb32
r300g: add get_cs_info winsys entrypoint, abandon check_cs
2010-05-26 22:22:52 +02:00
Marek Olšák
6ca3f86bdc
r300g/swtcl: do not use u_upload_mgr and do not compute max_index
2010-05-26 22:22:52 +02:00
Marek Olšák
bbfd785259
r300g: remove unnecessary includes
2010-05-26 22:22:52 +02:00
Eric Anholt
3b68b6c83e
i965: Add support for EXT_timer_query on Ironlake.
...
We could potentially do this on G45 as well, though the units are
different. On 965, the timestamp is tied to hclk, which would make
supporting it harder.
2010-05-26 12:14:44 -07:00
Eric Anholt
fd3425fdff
intel: Handle decode of PIPE_CONTROL instructions.
2010-05-26 12:13:54 -07:00
Eric Anholt
ddb10c3e60
i965: Move Gen6 debugging emit_mi_flush into the Gen6 block.
2010-05-26 12:13:54 -07:00
Eric Anholt
8f61114907
i965: Don't PIPE_CONTROL instruction cache flush.
...
This is a workaround for Ironlake errata. The emit_mi_flush is used
for a few purposes:
1) Flushing write caches for RTT (including blit to texture)
2) Pipe fencing for sync objects
3) Spamming cache flushes to track down cache flush bugs
Spamming cache flushes seems less important than following the docs,
and we should probably do that with a different mechanism than the one
for render cache flushes.
2010-05-26 12:13:54 -07:00
Eric Anholt
6e2330daa6
i965: Emit MI_FLUSH before PSP on Ironlake for clip max threads errata.
2010-05-26 12:13:54 -07:00
Vinson Lee
80689ae615
gallivm: Remove unnecessary headers.
2010-05-26 11:13:23 -07:00
Vinson Lee
2966a25d3b
st/xorg: Remove unnecessary headers.
2010-05-26 10:59:57 -07:00
Vinson Lee
3fa8a8ea28
util: Remove unnecessary headers.
2010-05-26 10:53:54 -07:00
Vinson Lee
67d5a51021
st/dri: Remove dri.c from SCons build.
...
This was missed in commit f501230db3
.
Fixes SCons build.
2010-05-26 10:24:36 -07:00
Kristian Høgsberg
cee4220f16
Revert the 'make static' part of 962f926112
...
The es1 and es2 dispath table initialization code is generated from the
API XML files and we can't easily share the dispatch table code setup.
Keep the _mesa_init_shader_dispatch() part of the patch, but roll back
the static-ization of shader entrypoints so es1 and es2 dispatch
initialization still works.
2010-05-26 11:32:36 -04:00
Marek Olšák
1bdbc0e38f
r300g: fix fence referencing
2010-05-26 16:39:32 +02:00
Brian Paul
d3f598a506
mesa: move all vertex array functions into varray.c
2010-05-25 21:42:13 -06:00
Brian Paul
a830eef8c2
mesa: added _mesa_GetVertexAttribIiv / AttribIuiv()
...
Refactor the code for all the glGetVertexAttrib() functions.
2010-05-25 21:38:02 -06:00
Brian Paul
e00d07cff6
mesa: added _mesa_VertexAttribIPointer()
2010-05-25 21:18:33 -06:00
Brian Paul
e793a24d7c
mesa: new GL 3.0 VertexAttrib commands
...
Still need to plug in API dispatch...
2010-05-25 21:18:33 -06:00
Brian Paul
962f926112
mesa: make a bunch of shader API functions static
2010-05-25 21:18:33 -06:00
Brian Paul
a017c7ecb7
mesa: display list support for uint uniforms
...
Still need to plug into dispatcher...
2010-05-25 21:18:33 -06:00
Brian Paul
09c7d7bf2a
mesa: consolidate some glUniform code
2010-05-25 21:18:32 -06:00
Brian Paul
07b0529e55
mesa: unsigned int uniform functions (GL3)
2010-05-25 21:18:32 -06:00
Brian Paul
91f841aefc
mesa: support for unsigned int uniforms
2010-05-25 21:18:32 -06:00
Marek Olšák
f0896e7f80
r300/compiler: implement SGT+SLE opcodes
...
Reported-by: Gianluca Anzolin <gianluca@sottospazio.it >
2010-05-26 04:47:55 +02:00
Marek Olšák
49bac3ccd8
r300/compiler: fix dumping r5xx vertex shaders
2010-05-26 04:47:27 +02:00
Marek Olšák
5c067a6304
r300/compiler: move hardware caps to the radeon_compiler base struct
...
Needed for vertex shaders too.
2010-05-26 04:47:26 +02:00
Marek Olšák
f2582da3bb
r300/compiler: shorten swizzle expressions
2010-05-26 04:47:26 +02:00
Dave Airlie
15496e06b7
rbug: add set sample mask passthrough.
...
This at least stops rbug segfaulting at startup.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-05-26 11:45:32 +10:00
Marek Olšák
e6a8513a86
r300g: more efficient finish + fix comments
2010-05-26 01:41:32 +02:00
Marek Olšák
2c072c8f72
r300g: implement fake but compliant fences
2010-05-26 01:23:11 +02:00
Marek Olšák
e1c117d87b
r300g: add r300_init_render_functions, remove r300_render.h
2010-05-25 23:32:25 +02:00
Marek Olšák
73ee4e7eb2
r300g: remove r300_query.h
2010-05-25 23:32:25 +02:00
Marek Olšák
d1dac36004
r300g: remove r300_flush.h
2010-05-25 23:32:25 +02:00
Marek Olšák
85eede1b2f
r300g: add r300_init_blit_functions, remove r300_blit.h
2010-05-25 23:32:25 +02:00
Marek Olšák
4d70a25964
util: update comments at blitter
2010-05-25 23:32:25 +02:00
Marek Olšák
16d1fb30a9
util: fix indentation in blitter
2010-05-25 23:32:25 +02:00
Marek Olšák
876de34c91
r300g,util: remove pipe_surface from the util_blitter_copy interface and clean up
2010-05-25 23:32:25 +02:00
Marek Olšák
59e51d9640
r300g,util: remove pipe_surface from the util_blitter_fill interface and clean up
2010-05-25 23:32:25 +02:00
Marek Olšák
85c55f2cf4
util: remove unused util_blitter_copy_surface
2010-05-25 23:32:25 +02:00
Jakob Bornecrantz
b9706886db
drm_api: Remove type argument from create screen callback
...
With the removal of DRI1 support there where no use of this argument,
some drivers didn't even properly check it.
2010-05-25 19:05:07 +01:00