José Fonseca
a6044bdf74
Revert "scons: Prefer MSVS 2003 (patch by Mark Mueller)."
...
This reverts commit 19f6e1a975 .
2008-02-27 09:10:14 +09:00
Kristian Høgsberg
20b8bff49c
i965: Setup framebuffer texture in meta_draw_region.
...
With DRI2 we there is no screen region until a drawable is bound to
the context. Set up the framebuffer texture in meta_draw_region instead
which should also handle the case where the draw region changes as a
result of resizing a redirected window or resizing the screen.
2008-02-26 18:01:13 -05:00
Eric Anholt
451bd1941e
[965] Don't segfault on INTEL_DEBUG=batch when a surface buffer is NULL.
2008-02-26 13:58:01 -08:00
Eric Anholt
09aa4b3690
[965] remove dead brw_parameter_list_state_flags.
...
This was replaced by Mesa core code.
2008-02-26 13:57:49 -08:00
Brian
d5ab6507f7
gallium: #includes to silence warnings
2008-02-26 14:34:19 -07:00
Brian
d4a4bed663
gallium: updated prototype (missed in prev commit)
2008-02-26 14:32:57 -07:00
Brian
5e29aab175
gallium: replace draw_convert_wide_points() with draw_wide_point_threshold()
...
Specifying a threshold size is a bit more flexible, and allows the option
of converting even 1-pixel points to triangles (set threshold=0).
Also, remove 0.25 pixel bias in wide_point().
2008-02-26 14:32:57 -07:00
Brian
b93cf55f4e
gallium: fix zero-sized viewport bug
...
If st_create_framebuffer() is called with width=0, height=0 and the program
never called glViewport, the viewport wasn't properly initalized. This fixes
that.
2008-02-26 14:32:57 -07:00
Brian
80efc5feb0
gallium: fix off by one rasterpos bug
2008-02-26 14:32:57 -07:00
Christoph Brill
6e3dde8a54
[r300] fix wow-pinkness regression. Fixed by Markus Amsler
2008-02-26 22:10:54 +01:00
Michal Krol
36aa9cf781
gallium: Print texture target for short dumps.
2008-02-26 22:10:52 +01:00
Christoph Brill
bfb7cd653a
[r300] Document based on chapter 10.4 and 10.5
...
This commit adds most of the graphics backend registers and of the rasterizer
registers. Again, some minor bugs were found and marked with TODO or even
fixed.
2008-02-26 21:45:58 +01:00
Ian Romanick
75dac3959f
cell: Multiple rendering contexts don't work yet
...
Log a message and forcibly exit. This prevents silly fools from
thinking there's a bug...instead of just an unimplemented feature. :)
2008-02-26 11:19:14 -08:00
Michel Dänzer
dbf12dcdb7
intel_winsys: Fix build failure due to DEBUG_IOCTL being undefined.
...
Include pipe/p_debug.h to consistently enable or disable the debugging code.
2008-02-26 18:48:13 +00:00
Brian
4901410293
gallium/i915: Use tgsi_scan_shader() to collect shader info
...
No longer use semantic info in pipe_shader_state.
Also, remove redundant semantic info from i915_fp_compile struct.
2008-02-26 10:47:42 -07:00
Brian
33d213b677
gallium: remove unused var
2008-02-26 10:44:44 -07:00
Brian
f74279002a
gallium: added tgsi_shader_field to sp_fragment_shader
...
Use the shader semantic info from there, instead of from pipe_shader_state.
Carry this idea to draw module and other drivers...
2008-02-26 10:13:39 -07:00
Brian
1410b7bb50
gallium: collect more shader info in tgsi_scan_shader()
...
Now getting input/output semantic info so we can eventually remove those
fields from pipe_shader_state.
2008-02-26 10:12:17 -07:00
Brian
ecd50ef58b
gallium: remove input_map[] from pipe_shader_state
2008-02-26 08:43:07 -07:00
Brian
232a41e19f
gallium: disable debug code
2008-02-26 08:41:42 -07:00
José Fonseca
19f6e1a975
scons: Prefer MSVS 2003 (patch by Mark Mueller).
2008-02-26 23:59:53 +09:00
José Fonseca
6d336588ed
scons: Properly generate PDB files on MSVC.
2008-02-26 23:06:09 +09:00
José Fonseca
bb68acbf8d
gallium: Add missing copyright headers.
2008-02-26 23:06:09 +09:00
Ben Skeggs
68ef528862
Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
2008-02-27 00:34:31 +11:00
Michal Krol
ad6bb870de
gallium: Fix build on Windows.
2008-02-26 11:49:25 +01:00
Zou Nan hai
9bd2cb7f90
[i915] fix texture size exceed limit case when running celestia
2008-02-26 17:20:12 +08:00
Thomas Hellstrom
32879e1461
[intel] Handle -EAGAINs correctly in execbuffer.
...
Dont stop on fence creation errors.
2008-02-26 09:19:27 +01:00
Zack Rusin
7838aaffdb
implement cache limits for cso
...
by default set to 4096, which might be on the large side
2008-02-26 01:51:46 -05:00
Zack Rusin
e798510569
add an explicit callback decleration and use it to silence warnings
2008-02-26 01:51:46 -05:00
Zack Rusin
bf1c2f3602
hide cso cache definition and add some initial code for size limiting
...
the caches
2008-02-26 01:51:46 -05:00
Zack Rusin
6abb82da7e
implement deleting of driver side cached state in cso's
2008-02-26 01:51:46 -05:00
Kristian Høgsberg
f1c82bf9a4
A few more fixes to the dlsym() fix.
...
Argh, seriously, I did test that, I just forgot to amend the commit
before pushing.
2008-02-25 22:24:09 -05:00
Dave Airlie
0a64ffb308
dri2: dlsym requires some quotes..
2008-02-26 12:28:45 +10:00
Brian
08a5f49644
gallium: rewrite AA point fragment shader to use a CMP instruction instead of IF/ELSE/ENDIF
...
Allows the shader to work on i915 hardware.
2008-02-25 18:56:36 -07:00
Brian
ba376b3314
gallium/i915: plug in aapoint draw stage
2008-02-25 18:56:36 -07:00
Brian
f43c44b5c9
gallium/i915: Fix emit_hw_vertex(): need to use vinfo->src_index[]
2008-02-25 18:56:36 -07:00
Brian
7ed9beef5f
gallium/i915: remove debug code
2008-02-25 18:56:36 -07:00
Brian
0235b32521
gallium/i915: fix i915_emit_texld() to handle swizzled texcoords
...
Allocate a temporary register, insert MOV instruction, etc.
2008-02-25 18:56:36 -07:00
Kristian Høgsberg
129b9ad16f
Use dlsym() to avoid referencing __dri2DriverInitScreen.
...
Sort-of a stop-gap workaround. There are a couple of nicer ways to
do this that doesn't require dlfcn.h, but they're more invasive.
2008-02-25 20:02:25 -05:00
Ian Romanick
2fc9d0ffac
cell: Additional changes to match changes in draw/draw_vertex_shader.c
2008-02-25 16:18:08 -08:00
Ian Romanick
2efa7e9489
cell: Fix off-by-one error in spu_dcache_fetch_unaligned
...
This time the off-by-one error caused an extra qword to be fetched
under certain circumstances when the source ea was not qword aligned.
2008-02-25 16:18:08 -08:00
Ian Romanick
a63fd641a0
cell: Trivial compiler warning clean-ups.
2008-02-25 16:18:08 -08:00
Ian Romanick
fb68daceec
Cell: Remove unnecessary include files
2008-02-25 16:18:08 -08:00
Ian Romanick
7976a084e7
Cell: Use multiple DMA tags for the dcache.
2008-02-25 16:18:08 -08:00
Kristian Høgsberg
bcecea6ea6
autoconf: Add gcc search patch to MKDEP_OPTIONS to eliminate warnings.
...
Also, use -include to avoid error message when make initially fails to
include the non-existent depend file.
2008-02-25 19:02:07 -05:00
Kristian Høgsberg
7381ccab44
intel: Add missing include file to silence last couple of warnings.
2008-02-25 19:02:07 -05:00
Kristian Høgsberg
54bd506c0f
intel: Initialize color and spec arrays in LOCAL_VARS macro.
...
Avoids spamming compilation output with tons of warnings about
use of possibly uninitialized variables.
2008-02-25 19:02:06 -05:00
Kristian Høgsberg
61c3c2c363
Change GetCompressedTexImage in dd_function_table to not take const pointers.
...
They're changed by the intel driver implementation and thus not const.
Fixes compilation warning.
2008-02-25 19:02:06 -05:00
Kristian Høgsberg
6e8d21d72f
Remove GetMSC DriverAPI function.
...
The DriverAPI is internal to the DRI drivers and GetDrawableMSC
obsoletes GetMSC. Also, since the DRI driver interface has not yet
been released, just drop the getMSC function from the DRI interface
instead using the ABI preserving version mechanism.
Finally, using void pointer privates in the DRI interface is not allowed,
always pass the actual types around (__DRIdrawable in this case) to
enhance type safety and readability of the code.
2008-02-25 19:02:06 -05:00
Kristian Høgsberg
b49a8f805a
Remove now unused setTexOffset from __DriverAPIRec.
2008-02-25 19:02:06 -05:00