Brian Paul
068039eec1
no change
2005-03-23 03:34:24 +00:00
Brian Paul
05bbafa01a
use $(*_LIB) in the *_LIB_NAME definitions
2005-03-23 02:12:21 +00:00
Keith Whitwell
8fb17f5b3f
rename mesaVis to try and improve clarity
2005-03-22 14:30:30 +00:00
Keith Whitwell
3e62d3a8d8
add FreeTexImageData hook to help single-copy texturing in drivers
2005-03-22 14:27:10 +00:00
Keith Whitwell
050b77a9ac
merge unichrome changes from branch
2005-03-22 14:25:55 +00:00
Keith Whitwell
59b4b7e07e
Remove test for defined(DRM_USE_MALLOC) around definition of
...
drmSIGIOHandler().
2005-03-22 13:34:27 +00:00
Keith Whitwell
46d50d9e8e
Add more formats to test.
2005-03-22 13:32:35 +00:00
Keith Whitwell
de4fe1e3c5
Add DRM_USE_MALLOC flag
2005-03-22 13:31:35 +00:00
Keith Whitwell
7f8e10f96c
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
...
driFillInModes().
2005-03-22 13:16:20 +00:00
Michel Dänzer
e7c7a0f353
Add support for production version of ATI RN50/ES1000. (ATI Technologies
...
Inc.)
2005-03-18 23:05:07 +00:00
Aapo Tahkola
6bd390743d
Misc fixes.
2005-03-18 14:44:27 +00:00
Michal Krol
2fb2e27e28
update against 03-Feb-2005 release
2005-03-18 14:28:02 +00:00
Michal Krol
5b641a516e
enable all 3dlabs front-end compiler sources
2005-03-18 14:21:07 +00:00
Michal Krol
706bb1c714
a little program to change // comments to /* */ ones
2005-03-18 14:07:47 +00:00
Michal Krol
1d5c727bba
glslang flex and bison sources:
...
flex glslang.l
bison -t -v -d glslang.y
mv glslang.tab.c Gen_glslang_tab.cpp (shouldn't be .c?)
mv glslang.tab.h glslang_tab.h
2005-03-18 12:18:00 +00:00
Aapo Tahkola
a890ceee63
Fix to get doom3 started.
2005-03-17 22:28:06 +00:00
Ian Romanick
8a7dcd97bd
xmllint fixes. Revert 'note_unflushed' changes that were accidetnally
...
committed in the last version.
2005-03-17 22:01:39 +00:00
Aapo Tahkola
a78bbd0816
Simple TCL stage and ability to disable vps.
2005-03-17 21:50:01 +00:00
Ian Romanick
80a939cafb
Enable the generation of server-side __glGetBooleanv_size and related
...
functions. There are two parts to this. First, a size element with a name
"Get" is shorthand for having four separate size elements with names
"GetIntegerv", "GetDoublev", "GetFloatv", and "GetBooleanv". Additionally,
a count of "?" is treated specially. This causes a call to a handcoded
function named "__gl<base name>_variable_size". This is *only* needed to
support GL_COMPRESSED_TEXTURE_FORMATS. That enum can return a variable
number of values depending how many compressed texture formats are supported
by the implementation.
Fix a problem with glGetProgram{Local,Env}Parameter[df]vARB,
glAreProgramsResidentNV, and glGetVertexAttribivNV. These changes only
affect code generated for the server-side.
The changes to enum.c are caused by enums added for the server-side
__glGetBooleanv_size functions.
2005-03-17 21:48:37 +00:00
Ian Romanick
6af6a69312
Minor refactoring and code tweaking. The only notable chage is that
...
FilterGLAPISpecBase::xref is replaced by
FilterGLAPISpecBase::functions_by_name. The notable difference between the
two is that ::functions_by_name includes all functions, whether they have an
assigned offset or not. This feature will be useful (necessary) when more
server-side code is generated.
2005-03-17 20:56:13 +00:00
Ian Romanick
979f35fb78
Minor vertex array support tweaks. These are in preparation for the
...
(eventual) addition of support for ARB_vertex_buffer_object. Elminitate the
need for array_state_vector::large_header. Make some very minor tweaks to
the handling of the indices pointer in emit_DrawElements_old.
2005-03-17 20:36:20 +00:00
Ian Romanick
b81efaaa1a
Minor vertex array support tweaks. Most of these are in preparation for the
...
(eventual) addition of support for ARB_vertex_buffer_object.
Move all the private vertex array data structures out of
indirect_vertex_array.c and into indirect_va_private.h.
Rename array_state_vector::enabled_array_count to
array_state_vector::enabled_client_array_count.
Make sure that both the GL extension string and the server GL version are
available when __glXInitVertexState is called.
Make sure that array_state::normalized is set correctly in the array's
gl*Pointer function.
2005-03-17 20:13:09 +00:00
Ian Romanick
00e760c971
Refactored some of the code for PrintGlxReqSize_[ch]. This ensures that the
...
same set of functions will be iterated for both the generated C-source file
and the generated header file.
2005-03-17 01:50:32 +00:00
Ian Romanick
3f35fbbf66
Fix the handling of zero-sized output parameters (i.e., those with type
...
'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This
fixes bugzilla #2747 .
Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla
#2746 .
2005-03-17 01:48:11 +00:00
Ian Romanick
9eae0b9f19
Hard-code the client-side maximum GL version. It turns out that there are
...
some flaws in the calculation code when the highest version listed in
known_gl_extensions is supported. This code would also have some problems
with some of the new features (that don't have an associated extension) on
GL 2.0.
2005-03-17 01:36:24 +00:00
Aapo Tahkola
c1aa3d1e6f
Proper VAP output configuration as R300_RS_ROUTE_0_COLOR became optional and broke arbvptorus(takes no input color but produces output color). Also removing some useless code.
2005-03-16 22:32:48 +00:00
Ben Skeggs
dd9da8cdb5
Fixed some strangeness when mixing textured/flat primitives. Skipping texture units should render correctly also. Aapo, I dont think I broke glxgears again on you...
2005-03-16 00:54:09 +00:00
Roland Scheidegger
fbe5296d14
add support for user-configurable brilinear filtering on r200
2005-03-15 22:23:29 +00:00
Aapo Tahkola
7541794373
Fix to get glxgears display anything.
2005-03-15 20:55:29 +00:00
Ben Skeggs
3c4c86aff2
For some reason the Makefile didn't commit..
2005-03-15 17:09:35 +00:00
Ben Skeggs
34dd4843d7
Initial multitexturing support. Old behaviour can be re-enabled by changing ifdefs in r300_setup_rs_unit and r300SetupPixelShader in r300_state.c\nRequires DRM update.
2005-03-15 17:00:44 +00:00
Ian Romanick
7457a648d2
If setting GL_PACK_INVERT_MESA results in a GL error, log it.
2005-03-14 22:09:31 +00:00
Felix Kuehling
bd5bba8470
When timestamping textures, need to emit the event with SAVAGE_WAIT_3D
...
set. Otherwise the 3D engine may still be using a texture that is
being overwritten. In order to minimize the cost of waiting, timestamp
textures only when needed: when a texture image changes, when a
different texture is bound to a texture unit or when a texture unit is
disabled. (Used to be after flushing every command buffer.)
2005-03-14 21:52:46 +00:00
Peter Zubaj
e2e4a5c992
Stencil support
...
Reflex from mesa demos doesn't work
TODO - double side stencil
I hope that I didn't break anything
2005-03-14 20:35:00 +00:00
Michal Krol
02eb36fa8d
re-enable slang sources
2005-03-14 12:43:59 +00:00
Michal Krol
0c7d2fff1e
make it compile under linux
2005-03-14 12:24:32 +00:00
Michal Krol
5c9d21df3d
make it compile under gcc 3.3.2
2005-03-14 12:23:14 +00:00
Michal Krol
8998de569c
fix enum comma
2005-03-14 12:19:36 +00:00
Aapo Tahkola
278c6025f9
Replacing alpha test bits with values that give desired results as compaired to software rendering. Alpha test in textures is still completely broken as can be seen in progs/demos/fire and various games.
2005-03-13 12:23:08 +00:00
Felix Kuehling
4f05e61543
Updated savage_dri.h from Xorg CVS. This removes definitions that are
...
not part of the DDX->DRI interface and should never have been in this
file in the first place.
2005-03-13 00:20:03 +00:00
Felix Kuehling
45f26f9979
Removed savagedma.[ch]. They have been unused for a while and were only
...
kept around for reference. Now that command DMA is implemented in the
DRM module they are no longer needed.
2005-03-12 23:00:53 +00:00
Aapo Tahkola
203bd3e8ec
Unlike radeon and r200 drivers r300AllocCmdBuf allocs dwords not bytes.
2005-03-12 10:14:09 +00:00
Ian Romanick
91c219d906
Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocol
...
for these extensions (as well as ARB_vertex_program and ARB_matrix_palette)
was just approved by the ARB on 8-Mar-2005. Now the only extension missing
for 1.5 support is ARB_vertex_buffer_object.
The opcodes for ARB_matrix_palette were also added to gl_API.xml. Since
this extension isn't supported by Mesa, no code is generated for it. Some
tabs were also converted to spaces in the comment for
GetCompressedTexImageARB.
2005-03-11 20:55:03 +00:00
Brian Paul
522ea42718
add MAT_DIRTY_FLAGS in _math_matrix_mul_floats(), (bug 2696)
2005-03-11 14:54:51 +00:00
Paul Mackerras
e24a9c10b5
Add suitable definitions for the _REV formats, plus a comment
...
explaining why they are the same as the non-REV formats now that
textures don't get byte-swapped on their way to the chip.
Fix the ARGB4444 and L8 formats.
Add entries for the A8 and RGB332 formats.
2005-03-11 11:38:23 +00:00
Felix Kuehling
96035d54f3
- Flush before updating the timestamp of a texture heap from a bound texture.
...
- Flush before using a new texture or before disabling a texture unit,
because savageFlushCmdBuf can only update the timestamp of the last
used texture. This fixes corruption in quake2 with single-textured
lighting.
2005-03-10 22:45:00 +00:00
Felix Kuehling
746df56717
If the texture image changed force emitting the texture address, even
...
if it didn't change. This seems to flush texture cashes. Fixes
multi-textured lighting in quake2.
2005-03-09 15:28:47 +00:00
Vladimir Dergachev
5737fda093
Don't use R200 texture constants - R300 fields are all different.
2005-03-09 05:31:31 +00:00
Vladimir Dergachev
439f7feab1
Deal with texture formats in a more robust way.
2005-03-09 00:40:55 +00:00
Aapo Tahkola
f0d484fa5a
Replacing some RADEON cmd types with r300 counterparts.
2005-03-08 22:29:45 +00:00
Aapo Tahkola
2579c32a5f
Improving Vladimirs alpha test fix a bit as it turns out r300Enable didnt correctly disable alpha test. Vertex programs with high vertex count now run a lot faster as software fallback is no longer on. Also disabling 'temp to result'-instructions as they probably violate the spec and dont seem to be something thats needed.
2005-03-08 03:29:46 +00:00
Ian Romanick
0bd5373d94
Actually *use* the count_scale value associated with a parameter.
2005-03-06 08:55:39 +00:00
Felix Kuehling
9d05d3dd30
Don't synchronize after each frame. Allow the GPU to be one frame
...
ahead of the CPU for more parallelism of CPU and GPU. Unfortunately
there seems to be some broken hardware (like my ProSavageDDR) on which
status register updates are delayed sometimes. This leads to very
jerky animation if the hardware can buffer more than the current
frame. A new option "sync_frames" can be used as a remedy on such
broken hardware.
2005-03-06 03:52:01 +00:00
Felix Kuehling
e6aa21156a
- Fixed two bugs related to DMA buffer handling that showed up with the
...
new DRM version 2.4 and command DMA.
- Flush less.
- Bumped the driver date.
2005-03-06 01:28:30 +00:00
Vladimir Dergachev
a30402b56a
Add format 15. It turned out to be X,X,X,X,X8.
2005-03-05 22:20:57 +00:00
Dave Airlie
07561c6b32
Fixing memset on ia64 & other archs
...
From: Stephane Marchesin
2005-03-05 06:38:59 +00:00
Vladimir Dergachev
a4296239d4
Enable VB mode rendering by default. If anyone thinks this is wrong, *please* feel free to change it back.
...
My reasons:
* immediate mode is broken
* vb mode is faster
* vb mode is the right way to do it.
2005-03-05 06:31:36 +00:00
Vladimir Dergachev
3f9467c946
Do properly initialize ALPHA_TEST register instead of carefully preserving bogus value. This fixes many, many rendering issues which I wrongly blamed on texture programming or performance..
2005-03-05 06:10:09 +00:00
Dave Airlie
1bb14ad90c
fix for solo to set the mode, and make solo gcc2 friendly...
...
From: Stephane Marchesin
2005-03-05 04:00:09 +00:00
Roland Scheidegger
87030f6618
remove one of the two _tnl_isolate_materials function calls
2005-03-05 00:04:20 +00:00
Adam Jackson
8ff72e9723
Add preliminary EGL headers.
2005-03-04 20:18:55 +00:00
Ian Romanick
b47731f24d
Import fixes from X.org tree (Søren Sandmann <sandmann@redhat.com>).
2005-03-04 17:53:24 +00:00
Rune Petersen
bc6bf401f5
Set pipes for R420 cards. Gives a nice speedup. This needs to be tested on r420 cards with less than 16 pipes.
2005-03-04 15:48:40 +00:00
Vladimir Dergachev
984d527626
Add a couple of helper functions for completeness.
2005-03-03 23:18:19 +00:00
Ian Romanick
fdb5a87f91
Fix some errors in the parameter descriptions in serveral vertex / fragment
...
program related functions.
2005-03-03 21:22:46 +00:00
Ian Romanick
ce77d37264
Check for some common function parameter description errors in the
...
endElement handler for <function>. This catches the errors as early as
possible and makes debugging other code easier.
2005-03-03 21:21:59 +00:00
Ian Romanick
6e776f25fd
When building in the X-Server, attr.depth doesn't exist. Instead, use
...
(XMesaDrawable)w)->depth in the error message.
2005-03-03 19:56:11 +00:00
Brian Paul
c1f2f9090b
change gl_buffer_object's Size field to GLsizeiptrARB type
2005-03-03 02:05:33 +00:00
Brian Paul
7644bfb536
Added linux-x86-32 config to force building 32-bit objects in a 64-bit environment.
2005-03-03 01:44:42 +00:00
Brian Paul
3e1961839e
if building 32-bit objects in 64-bit environment, use -m32 flag
2005-03-03 01:38:13 +00:00
Alan Hourihane
fff3b2f318
use COPY_CLEAN_4V macro to replace using both ASSIGN_4V & COPY_SZ_4V
2005-03-02 18:57:01 +00:00
Brian Paul
b960c14cbb
Added a bunch of new comments, minor code clean-ups.
2005-03-02 16:37:24 +00:00
Brian Paul
3db7ae3a38
Using glColor3 commands to update materials could result in an undefined
...
alpha value. Fixed.
2005-03-02 16:31:58 +00:00
Brian Paul
7cd2ae9d97
added stub functions for GLX_MESA_allocate_memory
2005-03-01 02:51:07 +00:00
Ian Romanick
03dc437363
Clean-up some warnings caused by the addition of vertex / fragment program
...
protocol support (reported by Adam Jackson). Added code to validate the
'type' parameter to the draw element functions.
2005-02-28 19:37:10 +00:00
Brian Paul
80875253ce
additional parenthesis in TNL_CONTEXT macro (Nicolai Haehnle)
2005-02-28 17:45:11 +00:00
Aapo Tahkola
d1e40c9bdd
fix for 'nasty bug' and some sanity checks to avoid buffer overruns. Bumping VSF_MAX_FRAGMENT_LENGTH as it seems a bit low otherwise.
2005-02-28 00:27:02 +00:00
Brian Paul
6c0c91714c
silence warnings
2005-02-27 16:23:41 +00:00
hmarson
87a2f3df64
Added 0x4e51 - Saphire 9600 256MB
...
0x4e71 - Saphire 9600 256MB - Second Head...
2005-02-27 12:12:25 +00:00
Dave Airlie
ab7312ef63
precedence precedence precedence.. add some brackets
2005-02-27 07:43:18 +00:00
Brian Paul
67742383e8
Rename _mesa_update_buffers() to _mesa_update_draw_buffer_bounds() and do
...
additional checks.
Replace _mesa_init_buffers() with _mesa_init_scissor() and _mesa_init_multisample().
2005-02-26 17:16:12 +00:00
Dave Airlie
4932ba28ad
Add a dri config option to enable the max texture level hack
...
make ycbcr depend on a CHIPSET define .. needs to be filled in though
2005-02-26 05:24:04 +00:00
Dave Airlie
8ca515097f
use girl2.rgb by default
2005-02-26 04:56:25 +00:00
Dave Airlie
c68233cb35
Add glXAllocateMemoryMESA demo app using ycbcr...
...
add girl2.rgb which is a slightly resized girl.rgb so client texturing works
2005-02-26 04:51:47 +00:00
Dave Airlie
9bfd9582d4
bring over structs from Xorg glx.h to make Mesa glx.h the one true glx.h
2005-02-26 03:55:44 +00:00
Dave Airlie
24dcc6b6bf
Add GLX_MESA_allocate_memory from Xorg glx.h
2005-02-26 03:51:17 +00:00
Ian Romanick
f3a6e4fa5b
Fairly significant changes to enums.c and the way it is generated. enums.c
...
now contains 3 static tables. The first table is a single, large string of
all the enum names. The second table is an array, sorted by enum name, of
indexes to the string table and the matching enum value. The extra string
table is used to eliminate relocs (and save space) in the compiled file.
The third table is an array, sorted by enum value, of indexes into the
second table.
The [name, enum] table contains all of the enums, but the table sorted by
enum-value does not. This table contains one entry per enum value. For
enum values that have multiple names (e.g., 0x84C0 has GL_TEXTURE0_ARB and
GL_TEXTURE0), only an index to the "best" name will appear in the table.
gl_enums.py gives precedence to "core" GL versions of names, followed by ARB
versions, followed by EXT versions, followed, finally, by vendor versions
(i.e., anything that doesn't fall into one of the previous categories). By
filtering the unneeded elements from this table, not only can we guarantee
determinism in the generated tables, but we save 364 elements in the table.
The optimizations outlined above reduced the size of the stripped enums.o
(on x86) from ~80KB to ~53KB.
The internal organization of gl_enums.py was also heavily modified.
Previously enums were stored in an unsorted list as [value, name] tuples
(basically). This list was then sorted, using a user-specified compare
function (i.e., VERY slow in most Python implementations) to generate a
table sorted by enum value. It was then sorted again, using another
user-specified compare function, to generate a table sorted by name.
Enums are now stored in a dictionary, called enum_table, with the enum value
as the key. Each dictionary element is a list of [name, priority] pairs.
The priority is determined as described above. The table sorted by enum
value is generated by sorting the keys of enum_table (i.e., very fast). The
tables sorted by name are generated by creating a list, called name_table,
of [name, enum value] pairs. This table can then be sorted by doing
name_table.sort() (i.e., very fast).
The result is a fair amount more Python code, but execution time was reduced
from ~14 seconds to ~2 seconds.
2005-02-26 01:09:35 +00:00
Ian Romanick
4e262cfb07
Accidentally committed wrong version with the previous commit set.
2005-02-25 23:02:33 +00:00
Ian Romanick
40af76bbaa
Add GLX protocol support for ARB_fragement_program,
...
ARB_fragment_program_shadow, ARB_vertex_program, NV_fragment_program,
NV_fragment_program_option, NV_fragment_program2, NV_vertex_program,
NV_vertex_program1_1, NV_vertex_program2, NV_vertex_program2_option,
NV_vertex_program3, and ATI_text_fragment_shader.
2005-02-25 22:46:30 +00:00
Ian Romanick
1fd3bbc42e
Convert the static functions read_pixel_reply, read_reply,
...
setup_single_request, and setup_vendor_request to the global functions
__glXReadPixelReply, __glXReadReply, __glXSetupSingleRequest, and
__glXSetupVendorRequest. This will make it easier to add handcoded Single /
VendorPrivate / VendorPrivteWithReply functions.
2005-02-25 01:48:25 +00:00
Aapo Tahkola
ac8020ea9c
Another nasty struct size bug found.
2005-02-24 13:59:56 +00:00
Brian Paul
2c6f911e10
More GL_EXT_framebuffer_object: rename some things, added device driver hooks.
2005-02-24 05:47:06 +00:00
Felix Kuehling
7b7d00ca62
Don't forget to update a heap's timestamp when a texture image is
...
changed. Other drivers don't need to do this because they're swapping
modified textures out of texture memory, which implies a timestamp
update.
2005-02-23 20:51:27 +00:00
Ian Romanick
365a0a7c15
Missed the commit of glxext.c yesterday.
...
Fixed a flow control problem in glGet*v that could result in the display
not being unlocked. This also resulted in refactoring a lot more code
out of the glGet*v routines into get_array_data, which was renamed to
get_client_data.
2005-02-23 20:06:52 +00:00
Ian Romanick
2b1ec683d3
Put quotes around $(CC) and $(CXX) so that 'CC=cache gcc' will work.
2005-02-23 19:24:30 +00:00
Brian Paul
ba0fe1832e
minor changes to aid debugging, and a new comment
2005-02-23 16:54:18 +00:00
Felix Kuehling
540b260cbd
With Savage DRM version 2.3.x or later use event counters for texture
...
heap aging, similar to the way it's done in the i810 and i855 drivers.
This avoids idling the engine on every texture upload.
2005-02-23 16:37:27 +00:00
Brian Paul
8f5f6b3d59
Sort the enums in the Python code, instead of at runtime. (Zack Rusin)
2005-02-23 16:36:17 +00:00
Ian Romanick
6614766f3e
Corrected the value for X_GLrop_SecondaryColor3svEXT.
2005-02-23 00:47:11 +00:00
Ian Romanick
57b5e8538e
Missed the Makefile with the previous commit.
2005-02-23 00:24:18 +00:00
Ian Romanick
fdb07636f2
Added __glExtensionBiIsEnabled and __GLXcontext::gl_extension_bits. This
...
enables libGL to query which extension are exported to applications.
Refactored array-query functionality (from glGet*v) in src/glx/x11/single2.c.
Massive re-write of indirect vertex array support. The most noticable
effect is that glDrawElements now generates DrawArrays protocol. The
side-effects (and the main reasons for the re-work) are that it is much
easier to add support for new arrays (e.g., GL_VERTEX_ATTRIB_ARRAY,
GL_WEIGHT_ARRAY_ARB, etc.) and it is much easier to add support for the new
DrawArrays protocol (required to support ARB_vertex_buffer_object).
These changes were primarilly tested with progs/demos/isosurf.
2005-02-22 22:36:31 +00:00
Brian Paul
cb83f62e30
now generated with Python script
2005-02-22 15:42:30 +00:00
Brian Paul
78123bb38b
generate enums.c file (Zack Rusin)
2005-02-22 15:39:46 +00:00
Aapo Tahkola
3c69df8a70
New elt buffer code should be fairly stable.
2005-02-22 05:16:42 +00:00
Vladimir Dergachev
e00b729716
Add code to autogenerate vertex shaders.
...
This is needed for multitexturing to work properly.
2005-02-21 06:09:30 +00:00
Dave Airlie
a2990a9d73
Add DESTDIR install target
2005-02-21 00:20:19 +00:00
Dave Airlie
dee1c795c2
add more functionality to miniglx for glitz
2005-02-20 10:46:34 +00:00
Aapo Tahkola
eb6560bf2b
Adding support for front buffer mode, removing some code we dont really need and some new debugging stuff.
2005-02-20 03:01:09 +00:00
Aapo Tahkola
35bc4ac680
Minor fix to border and blend color.
2005-02-19 16:30:56 +00:00
Aapo Tahkola
ff3ce3dd96
Disabling some fallbacks as they cause misc programs not to start and adding some comments.
2005-02-19 03:04:08 +00:00
Aapo Tahkola
42896b2a18
Fix for buffer overrun caused by ALLOC_STATE not having args surrounded by parenthesis. Can you see it? HINT: Anything texture related should now work slightly better. And yes it took me several hours to find it.
2005-02-19 02:25:53 +00:00
Nicolai Haehnle
10b892af96
Print an error if idling the engine before the buffer copy fails.
...
Be a bit more useful about the sync message after flushing command buffers.
Add an "allmsg" debug name that enables all log messages but does not
enable syncing.
2005-02-18 22:07:20 +00:00
Michel Dänzer
9605806d81
fd.o bug #2576 : Add support for ATI RN50/ES1000. (ATI Technologies Inc.)
2005-02-18 20:03:33 +00:00
Nicolai Haehnle
3f22c0966d
r300RefillCurrentDmaRegion: Retry buffer acquisition only once, after
...
waiting for the engine to idle. There's no way for another buffer to
become free anyway once the engine is idle.
2005-02-18 18:57:38 +00:00
Nicolai Haehnle
8281cca82f
Always submit command buffers, even when there are no cliprects,
...
so that we no longer leak DMA buffers (plus, this just might fix some
state-setting related problems, if there were any - but that's unlikely).
Update the DRM to cope with cmdbuf->nbox == 0.
2005-02-18 18:28:52 +00:00
Aapo Tahkola
4d73f1af35
We dont need to call r300EmitAOS if we arent going to draw anything(r300_get_num_verts returns 0).
2005-02-18 16:58:19 +00:00
Nicolai Haehnle
26d812ae00
Reset nr_released_bufs to 0 after the command buffer has been submitted.
...
Added a more verbose comment about nr_released_bufs in r300_context.h
2005-02-18 16:34:14 +00:00
Brian Paul
f448e632b6
XMesaGetDepthBuffer() returned wrong bytesPerValue (Karl Schultz)
2005-02-18 14:49:27 +00:00
Brian Paul
49f7430b12
s/0/NULL/ (Jeff Muizelaar)
2005-02-18 14:44:00 +00:00
Nicolai Haehnle
d73b929ef2
Fix: RADEON_DEBUG is a bitfield, so use & to check for flags, not ==
2005-02-18 11:27:24 +00:00
Nicolai Haehnle
6f37e76272
Fixing *lots* of warning messages, especially concerning unportable
...
whitespace before preprocessor commands.
Please, can you try to keep the warnings down? Try running make with
make -s sometime to see just how bad an offender the current code is.
2005-02-17 22:07:32 +00:00
Nicolai Haehnle
74477b24a8
RADEON_DEBUG is a bitfield, so use & instead of ==.
...
Also, put the hash in preprocessor directives at the beginning of the line
to fix error messages.
2005-02-17 21:45:20 +00:00
Aapo Tahkola
78152f85e7
Switching to start_index32_packet.
2005-02-17 18:16:46 +00:00
Aapo Tahkola
002a64cc48
magic_1 handling...
2005-02-17 18:02:28 +00:00
Ben Skeggs
ca4116bfce
oops.
2005-02-17 14:34:51 +00:00
Brian Paul
0846e52d46
s/0/NULL/ (Jeff Muizelaar)
2005-02-17 14:12:50 +00:00
Brian Paul
6e2fd96627
remove extern (Jeff Muizelaar)
2005-02-17 14:11:56 +00:00
Ben Skeggs
a9eb712fc9
Make immediate code do a LOAD_VBPNTR again
2005-02-17 12:37:40 +00:00
Dave Airlie
934be3266f
fix some 0->NULLs
2005-02-17 11:13:59 +00:00
Vladimir Dergachev
c8af2b5a52
Cleanup formatting a little bit.
2005-02-17 06:39:09 +00:00
Brian Paul
f321f16e83
fix non-Win32 definition of GLUTAPIENTRY, remove some cruft
2005-02-16 19:52:35 +00:00
Aapo Tahkola
41d180c899
Support for idx buffers. Leaving it on by default as it doesnt seem to cause any lock ups nor other issues. Tests with one object using elts should pass. Introducing more than one object will cause indices to mix up as far as i can see. DRM update is needed for this code to work\!
2005-02-16 19:04:32 +00:00
Rune Petersen
8eeef423e9
small cleanup, remove some warnings
2005-02-16 16:52:11 +00:00
Brian Paul
1ff8f50f2f
fixed problems with parse_float() (fd.o bug 2520)
2005-02-16 15:08:29 +00:00
Brian Paul
2c28dd892c
s/0/NULL/ (Jeff Muizelaar)
2005-02-16 15:02:25 +00:00
reist
5c2f3d5d3a
get two textures to work
2005-02-16 10:38:57 +00:00
Ben Skeggs
d588311dbb
Don't enable fog. It's broken
2005-02-16 06:24:07 +00:00
Ben Skeggs
f446027656
Share routing code between immd/vb. Fix breakage of vertex programs in vb mode.
2005-02-15 19:07:35 +00:00
Dave Airlie
233d93d47e
Add missing texture formats for completeness
2005-02-15 11:20:11 +00:00
Dave Airlie
70f2be9cc6
add some missing texture formats and bits from r200 docs
2005-02-15 10:44:20 +00:00
Jerome Glisse
9e5a0b8895
Added texture format table for big endian (this is a tempory hack).
2005-02-15 10:40:34 +00:00
Dave Airlie
09298228c6
add EnableExtension so r200 enables all its extensions, add mesa memory
...
extension entry points
2005-02-15 08:40:24 +00:00
Roland Scheidegger
e82cb7852b
remove accidentally commited printf for tiling support
2005-02-14 17:37:52 +00:00
Ian Romanick
4ea4589302
Simple test for GL_MESA_pack_invert.
2005-02-14 17:07:29 +00:00
Daniel Borca
a5f2dcb57b
updated doc
2005-02-14 15:06:50 +00:00
Daniel Borca
72b2af6035
removed detritus
2005-02-14 15:05:24 +00:00
Daniel Borca
84396a72df
separated DOS GLUT from GLX GLUT.
...
added a few FreeGLUT specific functions.
2005-02-14 15:04:52 +00:00
Aapo Tahkola
0340663eb7
Support for blend color(not tested), "proper line width/point size" clamps and fix for glxinfo problem.
2005-02-14 13:14:16 +00:00
Keith Whitwell
8352666a9d
mesa-fix-one-bit-signed-bitfield.patch from Jeff Muizelaar
2005-02-14 09:36:00 +00:00
Dave Airlie
8d12a6d537
fix some signed vs unsigned warnings
2005-02-14 09:27:38 +00:00
Dave Airlie
fbdd7a5e74
fix signed vs unsigned comparison warnings in tnl_dd
2005-02-14 09:25:08 +00:00
Daniel Borca
aeee36a311
killed a few warnings
2005-02-14 08:19:54 +00:00
Daniel Borca
2f99f6558c
added a bunch of const in the decoder
2005-02-14 08:08:35 +00:00
Daniel Borca
b6082fd236
static const' instead of
const static'
2005-02-14 08:02:50 +00:00
Daniel Borca
0a13cebaa1
ProgramCallbackMesa must match the prototype
2005-02-14 08:01:59 +00:00
Eric Anholt
baa832d311
Change another usage of __AMD64__ to the standard __amd64__, and remove
...
__AMD64__ from the linux configs so it won't creep back in as easily. Fixes
hang on FreeBSD on the first lock grab.
2005-02-14 06:57:27 +00:00
Eric Anholt
1718e34352
Don't forget to -L/usr/local/lib to grab expat.
2005-02-14 06:54:50 +00:00
Michel Dänzer
d5e008b84b
Typo fix.
2005-02-13 18:37:36 +00:00
Rune Petersen
3271390362
initial r400 support: r400 cards are treated as RV350 for now.
2005-02-12 21:29:51 +00:00
Michel Dänzer
37cbb521d3
MMIO endianness fixes for Radeon drivers.
2005-02-12 20:37:07 +00:00
Brian Paul
2752177ade
unlock mutex upon error return (Jeff Muizelaar)
2005-02-12 18:43:38 +00:00
Felix Kuehling
f640ee2f6e
Fall back properly when GL_COLOR_LOGIC_OP is enabled and != GL_COPY.
...
Add missing per-primitive fallback for polygon stipple.
2005-02-12 16:02:30 +00:00
Felix Kuehling
25817dc26b
Offset LOD bias by about 0.3 to match software rendering more closely.
...
Another small tweak to subtile upload (mostly cosmetic).
2005-02-12 14:37:17 +00:00
Felix Kuehling
ed9119b72a
Make glean's masked clear test pass.
2005-02-12 14:35:17 +00:00
Felix Kuehling
0872b85b1e
Savage3D-based chips seem so use a constant tile stride of 2048 for
...
vertically incomplete tiles, but only if the color depth is
32bpp. Nobody said this was supposed to be logical!
2005-02-12 14:03:05 +00:00
Ben Skeggs
6125515cec
Enabled vertex buffer mode as default.
2005-02-12 11:15:55 +00:00
Keith Whitwell
cc70176446
Turn _via_fastrender_stage back on.
2005-02-11 18:25:55 +00:00
Keith Whitwell
a0c8524924
mesa-main-0-NULL.patch from Jeff Muizelaar
2005-02-11 09:34:05 +00:00
Ben Skeggs
2d10924a14
Port of r200 VB code. VB path should be as fast as the immediate path now, tuxracer should render correctly. Immediate path was left enabled.
2005-02-11 05:59:13 +00:00
Roland Scheidegger
4837ea3020
add texture micro and macro tiling to radeon/r200 driver. This can improve performance up to 15% in texture-intensive applications. Convert the driver to use the correct blit format and blit width instead of fixed blit format and blit width when uploading textures to make it work.
2005-02-10 22:36:06 +00:00
Roland Scheidegger
26d3159125
add the new RADEON_CUBIC_OFFSET/FACES state packets/registers to radeon (and r200) sanity code
2005-02-10 21:59:20 +00:00
Roland Scheidegger
b66251f76d
(Andreas Stenglein) fix projected textures with swtcl, they need the w coordinate of the vertex (bugzilla #1648 )
2005-02-10 18:28:44 +00:00
Brian Paul
d9468c9405
new comments, fix zoffset error test
2005-02-10 16:08:07 +00:00
Brian Paul
f901072afb
lots of updates
2005-02-10 15:18:26 +00:00
Aapo Tahkola
1982a66838
Added kindly note about single buffer mode.
2005-02-10 12:40:41 +00:00
Aapo Tahkola
3f9bae90c3
Updating master copy of r300_reg.h and turning immediate mode back on
2005-02-10 11:02:55 +00:00
Keith Whitwell
b97e478fe9
mesa-tnl-0-to-NULL.patch from Jeff Muizelaar
2005-02-10 10:57:22 +00:00
Keith Whitwell
a9a4c5489e
Catch no-op vertex buffers consisting only of vertices which will
...
also appear in a future buffer.
2005-02-10 10:55:30 +00:00
Aapo Tahkola
a85eb9c0a7
Removing some regs that are wrong and adding some comments to r300_reg.h .
2005-02-10 10:45:54 +00:00
Aapo Tahkola
dd951e6dde
Support for PolygonMode. Not too far from working even though i almost gave up once already.
2005-02-10 08:56:35 +00:00
Vladimir Dergachev
d190734875
Fix copy'n'paste errors.
...
Print command buffer sizes during startup (TODO: remove 1 || when the driver is more mature).
2005-02-10 07:39:11 +00:00
Aapo Tahkola
4afa1d7abb
Turns out unknown5 was border color. texwrap looks good now.
2005-02-10 05:11:31 +00:00
Aapo Tahkola
58010eb35c
Adding support for selecting line width. Stipple patterns still cause lots of trouble.
2005-02-10 04:43:07 +00:00
Ian Romanick
816c0c932d
Simple test for ARB_texture_env_crossbar functionality. It is difficult
...
to come up with good tests for this functionality that don't require
either ATI_texture_env_combine3 or NV_texture_env_combine4.
2005-02-09 22:16:38 +00:00
Brian Paul
4f1f5e336b
glGet*(GL_FRAGMENT_PROGRAM_BINDING_NV) was returning the vertex program binding.
2005-02-09 18:46:16 +00:00
Brian Paul
a8d5b176b5
Added a test/clamp in the scale_internal_*() functions to prevent reading
...
a row of pixels beyond the input buffer's bounds.
FDO/Mesa bug #2510 .
2005-02-09 16:18:39 +00:00
Aapo Tahkola
fe7aa08ad9
Enabled user-defined point size, enabled zbiases for rest of the primitives and fixed bad vertex number checks triggered by nurb.
2005-02-09 05:53:34 +00:00
Brian Paul
1f6735a6a5
initial support for GL_EXT_framebuffer_object
2005-02-09 03:51:11 +00:00
Brian Paul
f0bbbf66b8
implement the 'completeness' tests
2005-02-09 03:50:30 +00:00
Ian Romanick
d863424032
Generate GLX protocol for pixel single commands.
2005-02-09 03:11:23 +00:00
Felix Kuehling
799bc13da2
Fixed stride of incomplete tiles.
2005-02-09 00:45:16 +00:00
Keith Whitwell
4754fc653f
SUBPIXEL fixes from Dieter
2005-02-08 20:52:02 +00:00
Vladimir Dergachev
85199453cc
Remove #ifdef's around PolygonOffset function.
...
Print number of missing entry for texture format.
Add alpha-luminance format.
2005-02-08 20:27:09 +00:00
Ian Romanick
a91e0218a3
Correct a couple problems / omissions in the DTD.
2005-02-08 19:52:26 +00:00
Aapo Tahkola
5e4a7581df
Typo..
2005-02-08 19:29:05 +00:00
Aapo Tahkola
6a04cff065
Fix the bug and get zbias back into shape. There might still be some problems with initial zbias...
2005-02-08 19:26:59 +00:00
Michel Dänzer
3dec3c7a74
Call _mesa_ResizeBuffersMESA() in r200Viewport(), fixes incorrect rendering
...
in bzflag 2.0. (Alexander E. Patrakov)
2005-02-08 17:39:08 +00:00
Brian Paul
8e5f0e62dd
clamp anisotropy against max value
2005-02-08 14:44:01 +00:00
Aapo Tahkola
46cde1715f
BIG FAT NOTE: Theres a nasty bug somewhere thats causing vb color buffer clears and other things not to work. This bug can be triggered by extending struct r300_hw_state by two struct r300_state_atom's from its current size. Everything zbs and unk42B4 related is now covered with HAVE_ZBS and GA ifdefs. Who wants to fix it? Not i. :)
2005-02-08 07:05:25 +00:00
Adam Jackson
d084982240
Bug #2477 : Make GLU/GLw/glut build properly even with -fvisibility=hidden.
2005-02-08 05:46:53 +00:00
Aapo Tahkola
4885a9eb20
Better fix to get tuxracer working.
2005-02-08 05:33:44 +00:00
Aapo Tahkola
1764b78ee9
fog + immediate mode = bad things
2005-02-08 04:46:39 +00:00
Aapo Tahkola
315afce941
Implemented checks that prevent r300 from locking up when bad number of verts are given. Also tweaked WARN_ONCE a bit to handle va-args.
2005-02-08 04:31:29 +00:00
Vladimir Dergachev
3f847b73f3
Let Polygon Offset be turned on and off.
2005-02-08 04:20:40 +00:00
Brian Paul
923b6fc4d9
just some comments
2005-02-08 04:08:56 +00:00
Brian Paul
1864c7d79a
a bunch of assorted fixes
2005-02-08 03:46:37 +00:00
Brian Paul
386e997f45
plug in GL_EXT_framebuffer_object functions
2005-02-08 03:46:08 +00:00
Brian Paul
3d2e10564e
removed GL_EXT_framebuffer_object tokens
2005-02-08 03:45:44 +00:00
Brian Paul
cf69e051ce
added GL_EXT_framebuffer_object enums/funcs. Remove when glext.h is updated
2005-02-08 03:45:08 +00:00
Brian Paul
78e6e59477
Add new entrypoints for GL_EXT_framebuffer_object.
2005-02-08 03:44:24 +00:00
Ian Romanick
87440f531c
Definitions for EXT_framebuffer_object. Just <include/> it in gl_API.xml
...
when ready.
2005-02-08 02:11:44 +00:00
Ian Romanick
6cfd4f7e55
Add the ability to include other XML files by using a
...
<include name="file"/> element as a sub-element of <OpenGLAPI>.
2005-02-08 02:11:14 +00:00
Brian Paul
463642c0be
checkpoint latest work
2005-02-08 02:06:00 +00:00
Brian Paul
d1b1b37270
added missing prototype
2005-02-08 02:05:13 +00:00
Brian Paul
0d22b90540
indentation fix
2005-02-08 02:04:49 +00:00
Aapo Tahkola
27f75a863e
To cut the long and boring story short, polygon offsets should now work. vb mode colorbuffer clears are still mysticly broken by offsets... Maybe we need to merge zbs and unk42B4 together?
2005-02-08 01:49:03 +00:00
Brian Paul
049290c584
improved warning message
2005-02-07 15:04:56 +00:00
Keith Whitwell
71699df7de
argb8888 optimizations from via branch
2005-02-07 13:20:17 +00:00
Keith Whitwell
8d621b3bdd
More texture enums (Andreas Stenglein)
2005-02-07 11:00:32 +00:00
Keith Whitwell
1f2b715988
GL_ARB_texture_rectangle enums (Andreas Stenglein)
2005-02-07 10:36:00 +00:00
Brian Paul
3deaa01c2b
additional work on GL_EXT_framebuffer_object
2005-02-07 05:08:24 +00:00
Jerome Glisse
1e42244e82
Added PCI id (0x4152).
2005-02-06 12:37:23 +00:00
Felix Kuehling
66b48d6df6
Disable vertex DMA on SuperSavages.
2005-02-05 22:10:14 +00:00
Felix Kuehling
5bdf2bc6c7
- Fixed scissor rectangle not moving with the window (Xorg bug #1731 ).
...
- Flush buffered primitives before changing scissors.
- Require Savage DRM version 2.1.0, so that the broken single-cliprect
code can finally rest in peace.
- Removed some more dead code.
2005-02-05 21:21:02 +00:00
Brian Paul
d9d972a944
added fbobject.c to sources
2005-02-05 20:00:15 +00:00
Brian Paul
ddc82eefca
Some initial work on GL_EXT_framebuffer_object.
2005-02-05 19:56:45 +00:00
Jerome Glisse
2886579324
Added PCI id (0x4152).
2005-02-05 19:52:26 +00:00
Brian Paul
bb7d5f8837
Remove the Shared->TexObjectList pointer and Next field from gl_texture_object.
...
Was only used by two drivers to walk over all texture objects. Can do that
via the hash table instead.
Cleaned up some comments for struct gl_texture_object.
2005-02-05 18:12:59 +00:00
Brian Paul
8c3ddf4270
add a few comments
2005-02-05 18:11:05 +00:00
Jerome Glisse
f955218bf1
Modified hw state for big endian computers.
2005-02-05 18:01:21 +00:00
Brian Paul
7aafcc86c7
remove dependency on Shared->TexObjectList
2005-02-05 17:43:33 +00:00
Brian Paul
ce657cf752
remove unneeded code
2005-02-05 17:38:13 +00:00
Brian Paul
cf899d400d
removed need for Shared->TexObjectList, walk over texture hash table entries instead
2005-02-05 17:37:00 +00:00
Felix Kuehling
557dce9bc2
Fixed a typo in an assertion. (Don't understand how this ever compiled.)
...
Found by Andreas Stenglein.
2005-02-05 13:17:34 +00:00
Vladimir Dergachev
b64d4a27cb
Warn of unknown texture formats.
2005-02-05 03:13:34 +00:00
Ian Romanick
a02b83115a
Fix some mixed spaces / tabs issues in generated code. Commit generated
...
files that have been trivially changed by other recent commits.
2005-02-05 00:59:57 +00:00
Ian Romanick
0a755ade51
Enable client-side GLX support for texture compression extensions.
2005-02-04 19:29:30 +00:00
Felix Kuehling
19064f818a
Added an option texture_heaps that allows selecting which texture heaps
...
will be used. Implemented this option in the Savage driver. On my
ProSavageDDR uploads to AGP memory are about 1.5 times as fast as
uploads to card memory. On non-IGP hardware the difference may be even
bigger. Now mplayer -gl is getting really usable.
2005-02-04 00:25:41 +00:00
Felix Kuehling
cbff5db516
Made subtile upload a template. This speeds up tiled texture uploads by
...
about a factor 1.3.
2005-02-04 00:17:21 +00:00
Felix Kuehling
64b85b4563
Use all texture heaps in a fair way when textures need to be kicked in
...
order to make room for new textures. In particular this fixes texture
trashing on the first heap when the second heap is occupied by
currently unused textures (observed with Torcs and the Savage driver).
Heaps are weighted by their sizes by default but drivers can override
these and apply their own weights based on relative texture upload
speeds to the respective heaps.
2005-02-03 21:40:21 +00:00
Aapo Tahkola
9ea600ff3f
Removing some trash and disabling fog fallback as it seem its causing more harm than good. Tuxracer should now work at least with vbs. Fix for vb colorbuffer clear bug is underway...
2005-02-03 19:51:57 +00:00
Aapo Tahkola
fe58074dea
Changing vb code to handle inputs correctly.
2005-02-03 19:43:27 +00:00
Vladimir Dergachev
c326f9ffae
Start beginning of pixel shader generator..
2005-02-03 17:48:32 +00:00
Vladimir Dergachev
54b03eefda
Forgot to increase the length.
2005-02-03 16:05:21 +00:00
Vladimir Dergachev
d26e464b6a
Looks like we need at least one instruction for pixel shader.
2005-02-03 16:01:46 +00:00
Vladimir Dergachev
4c56261075
Get vertex programs supplied by the user work properly with immediate mode - vertex buffer mode worked by accident.
...
Fix alu_offset in SINGLE_TEXTURE_PIPELINE.
2005-02-03 15:44:06 +00:00
Vladimir Dergachev
19b260119a
Since high bits can be used for flags, mask them out.
...
This stops arbvpwarpmesh from segfaulting and it actually works - with immediate mode rendering.
2005-02-03 06:33:44 +00:00
Vladimir Dergachev
3f0926b612
Remove redundant instructions from fixed pipelines, looks like they do not do anything, at least on my hardware.
2005-02-03 04:16:59 +00:00
Vladimir Dergachev
cb085044c9
Mark ZBIAS definitions.
2005-02-03 03:48:22 +00:00
Vladimir Dergachev
f350617c24
This was too optimistic sorry - all that register does is something weird with polygon culling.
2005-02-03 03:47:12 +00:00
Vladimir Dergachev
f46de6f23b
Get Polygon offset fill to work.
...
Make WARN_ONCE message more informative.
2005-02-03 03:43:01 +00:00
Ian Romanick
94a20cbadf
Added a bunch of extensions that were previously supported but weren't
...
in the gl_API.xml database. Add "official" support for SGI_color_matrix
and SGI_texture_color_table. These were previously supported only by
way of ARB_imaging.
2005-02-03 00:38:40 +00:00
Felix Kuehling
eba5b610b9
Check for heap == NULL before driSetTextureSwapCounterLocation.
2005-02-02 15:57:25 +00:00
Felix Kuehling
2eb9e67a5a
Don't try to kick textures from a NULL tex heap.
2005-02-02 15:52:29 +00:00
Felix Kuehling
8b21166c14
Fixed flushing of client-side vertex buffers.
2005-02-02 14:43:03 +00:00
Felix Kuehling
1a141b9161
Fixed some debug output that was unconditionally enabled.
2005-02-02 14:42:00 +00:00
Brian Paul
6286dda286
clamp viewport against ctx->Const.MaxViewportWidth/Height instead of MAX_WIDTH/HEIGHT
2005-02-02 14:12:59 +00:00
Aapo Tahkola
1a1c49f8a6
Changed parts of r300_setup_routing to use WARN_ONCE.
2005-02-02 13:29:11 +00:00
Ian Romanick
3fec8c24ec
Small refactor. Add glXFunctionIterator, which derrives from
...
glFunctionIterator and is used by GlxProto. The difference between the two
iterator classes is that glXFunctionIterator skips functions that the GLX
protocol code does not care about.
Replace all the remaining occurances of glParameter::p_count_parameters and
glFunction::count_parameters with the count_parameter_list.
Add GlxProto::size_call to generate the C code to calculate 'compsize'.
These trivially modify the generated code.
2005-02-02 00:54:45 +00:00
Aapo Tahkola
6b158a7d23
Add a missing break and a reminder.
2005-02-01 23:12:36 +00:00
Aapo Tahkola
b5c90ca7d9
Implement appropriate src checks for attribs/params.
2005-02-01 22:45:11 +00:00
Aapo Tahkola
b5128c6e82
Implemented bunch of ops.
2005-02-01 19:56:52 +00:00
Aapo Tahkola
7bccfa1026
Vertex programs work now with some restrictions. I expect arbvptorus to work
...
correctly when normals are delivered. Please note that some programs only
start in vb mode as there is something wrong in immediate mode vb code.
2005-02-01 16:56:52 +00:00
Vladimir Dergachev
5dd4030e76
Make WARN_ONCE messages more informative.
2005-02-01 15:51:54 +00:00
Vladimir Dergachev
6d419feec7
Reduce noiseness of the driver.
2005-02-01 15:46:23 +00:00
Vladimir Dergachev
88e155e353
Get alpha in textures to work properly.
2005-02-01 15:27:36 +00:00
Vladimir Dergachev
d4697b0997
Properly set ABLEND and CBLEND registers. The older code worked, but by accident.
2005-02-01 06:55:58 +00:00
Vladimir Dergachev
4a3c6095fc
Looks like we can define FIRE_VERTICES correctly.
2005-02-01 05:59:00 +00:00
Vladimir Dergachev
0ab7fb56f5
It helps to print actual values instead of random ones.
2005-02-01 05:58:27 +00:00
Ian Romanick
c2803587b6
Small refactor. Move several utility functions from glX_XML.py to
...
FilterGLAPISpecBase (in gl_XML.py). When these functions are used to emit
common #define lines, the will automatically be undefined in
FilterGLAPISpecBase::printFooter if header_tag is set (i.e., the file is a
header file).
These changes do not modify the generated code.
2005-02-01 00:28:47 +00:00
Ian Romanick
ba09c19ed6
Add GlxProto::createEnumFunction and add a 'context' parameter to the
...
glXEnumFunction constructor. The allows sub-classes of GlxProto to
over-ride the concrete class used for glXEnumFunction.
In addition to tracking p_count_parameters in glParameter, break the comma
separated list of parameter names into a Python list called
count_parameter_list. It is now possible to query if a name is the name of
one of the count parameters just by comparing
param.count_parameter_list.count(n) to zero. Eventually the remaining uses
of p_count_parameters will be replaced with uses of count_parameter_list.
Make sure that 'void *' parameters are handled correctly in
glParameter::size_string.
Add PrintGlxReqSize_h and PrintGlxReqSize_c. These classes emit prototypes
and functions used on the server-side to determine the expected size of an
incoming GL command.
2005-02-01 00:13:04 +00:00
Adam Jackson
886280763c
Bug #2428 : #ifdef GLX_DIRECT_RENDERING in DRI drivers is pointless.
2005-01-31 23:40:05 +00:00
Daniel Borca
fc4cabbfa8
makefile update (readtex, showbuffer)
2005-01-31 13:23:55 +00:00
Vladimir Dergachev
e61c8a5c63
Add magic sequence to prevent ClearBuffer from locking up.
...
Change Polygon.OffsetFill from fallback to warn once.
Quake demo now works, modulo texture rendering issues due to absent pixel shader pipeline.
2005-01-31 06:41:55 +00:00
Vladimir Dergachev
9c1773e505
Use SecondaryColorPtr, not ColorPtr[1] (the latter is NULL).
...
This fixes segfault in tuxracer-demo. It locks up after this though.
2005-01-31 02:52:59 +00:00
Vladimir Dergachev
15f108335a
My bad, the old code works fine if updated to newer Mesa tree.
2005-01-30 22:16:28 +00:00
Vladimir Dergachev
0cd936c01f
struct ati_fragment_shader was not defined anywhere, define it to get r300_vertexprog.c to compile.
2005-01-30 22:04:40 +00:00
Brian Paul
b55117042f
fix max viewport query
2005-01-30 17:18:08 +00:00
Aapo Tahkola
29d021cd31
Fix for compiler warnings.
2005-01-30 11:12:59 +00:00
Dave Airlie
3aa69b39bf
add number of passes count to ati_fragment_shader
2005-01-30 06:24:30 +00:00
Felix Kuehling
5ff53cb448
* Fixed uploading of textures of certain sizes.
...
* When glTexSubImageND is used, track the set of changed tiles in a
bit vector and upload only dirty tiles later. This should improve
the performance of dynamic light maps and gl movie player plugins.
* Renamed debug item "lru" to "tex". Indicate which levels are
uploaded completely or partially.
2005-01-29 23:26:23 +00:00
hmarson
9ff3c49ef2
Added 0x4e54 (Thinkpad r50p) as PCI_CHIP_RV350_NP
2005-01-29 20:41:31 +00:00
Aapo Tahkola
941d6b008f
Beginings of program generation. This code havent been tested nor hooked up.
2005-01-29 17:57:07 +00:00
Brian Paul
3bde211549
remove stray span.y++
2005-01-29 17:28:45 +00:00
Brian Paul
98a9ad9241
added osmesa16 stuff
2005-01-29 13:48:43 +00:00
Brian Paul
371f576731
assorted fixes
2005-01-29 13:48:27 +00:00
Brian Paul
58f4d67703
fix initial viewport size bug
2005-01-29 13:36:15 +00:00
Brian Paul
c84cde7b0b
added missing glFinish()
2005-01-29 12:57:36 +00:00
Aapo Tahkola
fbb478c946
Cleaning up.
2005-01-29 07:17:27 +00:00
Ian Romanick
16c3c74018
Refactor the code to emit multiple-inclusion protection to
...
FilterGLAPISpecBase. Since the size_h mode of glX_proto_size.py will be
used to generate multiple header files, add an option to specify the define
that is used for multiple-inclusion protection.
The changes to the header files in this commit are just a side-effect of the
changes to the Python scripts.
2005-01-28 19:00:54 +00:00
Michal Krol
8d27148bbd
move file
2005-01-28 18:39:26 +00:00
Ian Romanick
54584df8cc
Properly annotate variable-length output parameters. Make sure that the
...
client-side code doesn't try to calculate the size of the output
parameters. The server will tell the client how big it is.
2005-01-28 18:20:43 +00:00
Ian Romanick
20b8d9c1b9
Fix some get / set errors with COLOR_TABLE_*. SCALE and BIAS can be
...
parameters to GetColorTableParameter[if]v. FORMAT, WIDTH, and the SIZE
enums cannot be parameters to ColorTableParameter[if]v.
2005-01-28 17:58:58 +00:00
Ian Romanick
fdb0527ddc
Slightly modify the meaning of the 'handcode' attribute in a 'glx' element.
...
The attribute can now take one of 4 states. "false" (the default value)
means that no handcoding is required for the function. "client" means that
the function must be handcoded on the client-side only. "server" means that
the function must be handcoded on the server-side only. "true" menas that
the function must be handcoded on both the client-side and the server-side.
Version 1.14 of glX_proto_send.py accidentally contained a line of this
change.
2005-01-28 17:30:25 +00:00
Ian Romanick
1fca563232
Add an option to emit extra debug code in the generated protocol functions.
...
The debug version of indirect.c has proven very helpful during the
development of new client-side and server-side GLX protocol code. This is
put here instead of in the DISPATCH and DISPATCH_RETURN macros in dispatch.c
for two reasons.
1. I only want the debug information when indirect-rendering is used.
2. Functions that require a reply from the server, some of which do not have
a return value (e.g., glFlush, glFinish, glGetLightfv, etc.), do not need
the extra glFinish call.
2005-01-28 16:51:01 +00:00
Aapo Tahkola
b365d28627
Fix wrong comment.
2005-01-28 11:59:37 +00:00
Aapo Tahkola
e451a95ecc
Forgot one comment...
2005-01-28 10:08:00 +00:00
Aapo Tahkola
f856b3f10f
Add basic sceleton for vertex programs + some other fixes
2005-01-28 09:57:06 +00:00
Ian Romanick
6398a97aff
Mark a couple more function parameters as counters.
2005-01-27 19:50:59 +00:00
Ian Romanick
82e22f50f1
Add numerous 'get'-type functions to most of the enums supported by the
...
server-side GLX implementation.
Correct the protocol for EXT_convolution. Several functions were
incorrectly listed as 'sop' that should have been 'vendorpriv'.
Remove TexParameter[if]v from the list of functions associated with
TEXTURE_RESIDENT. The state associated with this enum is read-only.
Sort the enums by value for each particular size. This ensures that the
signature is the same no matter what the ordering is of the enums in the XML
file. The side effect is that there are some extra changes in
indirect_size.c.
2005-01-27 19:39:16 +00:00
Aapo Tahkola
d773598224
Add vector distance operator for vertex programs.
2005-01-27 04:42:52 +00:00
Ian Romanick
5aa6dc329b
The 'mode' setting of a function within an 'enum' element is now used.
...
Parameters to glX_proto_size.py are now used to determine whether to emit
either get-type function, set-type functions, or both. When only get-type
functions are emitted, they can optionally alias set-type functions. This
would be useful if, for example, the two types were in different source
files.
The real work to implement this is in SizeStubFunctionIterator class. All
of the logic for which functions to iterate and in which order is
implemented there.
2005-01-27 01:08:48 +00:00
Ian Romanick
5b0dd89370
remove a bunch of temporary #defines, now that glext.h was updated
2005-01-26 19:19:06 +00:00
Roland Scheidegger
a205137423
(Stephane Marchesin, me) Add support for color (framebuffer) tiling to the radeon and r200 driver
2005-01-26 18:05:03 +00:00
Roland Scheidegger
7104ce0a0e
new version check to allow to test for a range of ddx major versions, instead of just one major version
2005-01-26 18:02:19 +00:00
Brian Paul
914746b400
remove a bunch of temporary #defines, now that glext.h was updated
2005-01-26 14:45:38 +00:00
Roland Scheidegger
0cbc25480f
replace magic number with macro constant RADEON_ZBLOCK16
2005-01-26 14:20:14 +00:00
Brian Paul
8f029f175e
just comments/clean-up
2005-01-26 14:02:50 +00:00
Brian Paul
7c58a00a50
added mutex to-do comment
2005-01-26 14:01:53 +00:00
Brian Paul
d01292bc54
just fix a comment and update date
2005-01-26 14:01:28 +00:00
Daniel Borca
b07390c8fd
RGB/LUMINANCE texelfetchers (float version) returned 255.0F for alpha channel, instead of 1.0F
2005-01-26 09:47:32 +00:00
Ian Romanick
38e6e09cb8
Add a glFunctionIterator class to iterate over the functions stored in a
...
higher-level API object. Use this type of object to implement the
printFunctions method. Modify other functions that iterate over the list of
functions to use this type of object.
2005-01-25 23:53:13 +00:00
Aapo Tahkola
e4d41524a2
Fixes for clamp modes.
2005-01-25 19:09:23 +00:00
Brian Paul
f106493d8b
Use the _mesa_HashNextEntry() function to walk over all textures in the
...
hash table.
Moving toward removing the gl_texture_object's Next pointer (only used by
glide and tdfx drivers).
2005-01-25 15:16:02 +00:00
Ian Romanick
01ec76dbd5
Stupid text editor...convert wayward tabs to spaces.
2005-01-25 01:36:32 +00:00
Ian Romanick
85f0fa3761
Add a "count" attribute to "enums" elements to set the default count
...
used for "size" sub-elements. In the future the "count" attribute may
be removed completely from "size" sub-elements, so gl_API.xml was also
updated.
Support was added for a (currently unused) "mode" attribute for "size"
elements. Basically, functions are marked as either "get" or "set". This
will be used in generating size functions for the server-side (where the
"get" functions have to know how much data to return). It could also be
used to help generate code for src/mesa/main/get.c.
2005-01-25 01:20:11 +00:00
Ian Romanick
cb59bd44db
Correctly set the name of the generating script.
2005-01-24 22:07:00 +00:00
Ian Romanick
00772ac42f
Move all the code for generating "size" related functions to its own
...
source file.
2005-01-24 21:56:05 +00:00
Ian Romanick
ad15f1bdea
Correct some of the dependencies and clean things up a bit.
2005-01-24 21:43:29 +00:00
Ian Romanick
5ff2b94630
Remove glEnum::startElement, but refactor out some of the common code from
...
there and glXEnum::startElement to glEnum::process_attributes.
2005-01-24 21:29:13 +00:00
Ian Romanick
0246b2a5c0
Since only one of the places that used glXFunction::command_payload_length
...
actually used both values, it was refactored into command_fixed_length and
command_variable_length. glXFunction::offset_of_first_parameter was also
added.
2005-01-24 20:59:32 +00:00
Ian Romanick
7f958e9e11
Make sure that functions added to gl_API.xml that do not have any GLX
...
section are marked as ignored. Also ignore any functions that don't have
assigned dispatch offsets.
Fold Adam Jackson's changes to indirect_size.c into the generator scripts so
that they don't get lost. "DO NOT EDIT" really means "DO NOT EDIT". ;)
2005-01-24 20:08:28 +00:00
Aapo Tahkola
f9f2db5132
border_color causes lockups with vertex buffers. Disabling for now.
2005-01-24 19:26:20 +00:00
Vladimir Dergachev
d7d54423a8
Remove lots of old code that dealed with "magic" texture formats.
2005-01-24 17:09:17 +00:00
Brian Paul
5c6b391900
reenable some assertions
2005-01-24 15:41:08 +00:00
Felix Kuehling
428a5e82fc
Converted the Savage texture management to use Ian's common texmem code.
2005-01-24 01:15:12 +00:00
Brian Paul
c74ffb8266
Added _mesa_HashNextEntry() function to allow walking over all entries
...
in a hash table.
Added _mesa_test_hash_functions() for unit testing.
Updated comments, etc.
2005-01-24 00:20:23 +00:00
Dave Airlie
72e3664996
reapply Keiths workaround for zbs emit that got dropped during
...
state change patches....
2005-01-23 22:09:30 +00:00
Nicolai Haehnle
0b5a5a9efb
Remove unused variables from r300_context
2005-01-23 17:35:05 +00:00
Nicolai Haehnle
4ced594aa8
Fix more warnings and compilation issues.
2005-01-23 17:28:04 +00:00
Nicolai Haehnle
cb77dcf0b9
Synchronize r300_reg.h.
...
Fix unportable whitespace before preprocessor commands.
2005-01-23 17:05:32 +00:00
Dave Airlie
150ed2e43d
add sync debugging to the radeon driver
2005-01-23 06:27:08 +00:00
Adam Jackson
999534216d
HAVE_ALIAS was never defined anywhere, add some logic to turn it on
...
automagically.
2005-01-23 03:54:38 +00:00
Adam Jackson
e82d5f2be9
silence makedepend warnings about non-portable whitespace
2005-01-23 02:12:23 +00:00
Felix Kuehling
8736c228cb
Fixed initialization of draw destination to front buffer on single
...
buffered visuals. Also don't change span draw/read buffers in
savageDDDrawBuffer. Now glean's polygon offset test works (and PASSes
with fixed point depth buffer) with single buffered visuals without
winding up in an infinite loop.
2005-01-23 01:46:14 +00:00
Felix Kuehling
3b50f00433
My last attempt to fix polygon offsets with the reversed viewport depth
...
range used by the savage driver by negating ctx->MRD broke polygon
offsets with software fallbacks. This one adds a REVERSE_DEPTH parameter
to t_dd_tritmp.h (defaults to 0) that allows reversing polygon offsets
for hardware rendering but not for software fallbacks. For software
fallbacks depth values are reversed after polygon offsets have been
applied by the depth span functions.
2005-01-23 01:42:01 +00:00
Keith Whitwell
36a35c5614
Determine ahead of time whether a display list will include vertices
...
which have to be processed in the 'loopback' path. If so, send
all vertices that way as the transition from playback->loopback has
several problems.
2005-01-22 14:38:00 +00:00
Vladimir Dergachev
8fca9bdc35
Properly configure routing - based on advice by Keith Whitwell.
2005-01-22 03:33:10 +00:00
Felix Kuehling
f4cafc8d13
Fixed polygon offset with reversed viewport depth range.
2005-01-22 00:52:31 +00:00
Vladimir Dergachev
4ac53aed6c
Properly input stencil info contributed by Wladimir.
2005-01-21 21:30:55 +00:00
Brian Paul
1060211918
fix glGetString funniness
2005-01-21 16:35:56 +00:00
Michal Krol
308fbb7b64
add getstring.c; remove arb*.h nv*.h stuff
2005-01-21 15:55:13 +00:00
Michal Krol
8346c5ee1d
add slang/traverse_wrap.h
2005-01-21 15:52:17 +00:00
Michal Krol
b39665950e
Handy TIntermTraverser class wrapper
2005-01-21 15:51:28 +00:00
Alan Hourihane
e51b0b1d30
silence the 'using AGP/PCI' string unless VIA_DEBUG is used.
2005-01-21 09:50:48 +00:00
Felix Kuehling
fa15f6c840
Small cleanup:
...
* Remove some unused (mostly empty) functions
* Added context parameter to WAIT_IDLE_EMPTY[_LOCKED] for consistency
* Added debug messages to WAIT_IDLE_EMPTY[_LOCKED]
* Don't flush empty command buffers
2005-01-21 01:39:09 +00:00
Felix Kuehling
677d1d07c4
* Added options for disabling the fast path (render stage) and vertex DMA
...
* Fixed disabling of the render stage
* Added debug output for per-primitive fallbacks
* Bumped driver date
2005-01-20 15:18:10 +00:00
Brian Paul
14dee36fa7
glext.h version 26
2005-01-20 15:07:42 +00:00
Felix Kuehling
edb9a165c1
Added support for ELTS to the _savage_render_stage. Requires at least
...
Savage DRM version 2.2.0. Otherwise the render stage is disabled.
2005-01-20 13:59:49 +00:00
Alan Hourihane
ddfa61ee19
Enclose passed macro values in brackets to ensure correct read/write span
...
values.
2005-01-20 13:24:08 +00:00
Brian Paul
cb3bc2c49a
document new glDeleteTextures/Buffers/Programs behaviour
2005-01-20 04:03:37 +00:00
Brian Paul
ea2943efd9
Update glDeletePrograms/Buffers() so that the ID is freed immediately, like
...
texture objects.
2005-01-20 04:02:02 +00:00
Brian Paul
36da0459e4
Use a simple CSS style sheet.
2005-01-20 03:55:10 +00:00
Brian Paul
10378919d7
Removed gl_texture_object's DeletePending. Changed a comment.
2005-01-19 21:41:24 +00:00
Brian Paul
31fb7648fc
added texobjshare.c
2005-01-19 14:52:13 +00:00
Brian Paul
4f6d9aaa9a
test program for texture sharing, deleting, etc
2005-01-19 14:51:41 +00:00
Brian Paul
42fee73aad
Change behaviour of glDeleteTextures as discussed on ARB list.
...
glDeleteTexture makes the texture ID immediately free for re-use
while the actual texture object lingers until its reference count goes
to zero (when no longer bound by any rendering context).
2005-01-19 14:50:52 +00:00
Brian Paul
140f99f81c
make sure the new instruction Data pointer is set to NULL
2005-01-19 14:45:23 +00:00
Brian Paul
7948bc02ed
fix a typo
2005-01-19 14:44:55 +00:00
Brian Paul
4ef0e046ec
minor formatting fix
2005-01-19 14:44:41 +00:00
Keith Whitwell
2aa34ea984
Bring the texcombine fixes to the trunk.
2005-01-19 12:09:33 +00:00
Keith Whitwell
bdb5725bab
Always use ARGB8888 hardware texture format when mesa specifies
...
MESA_FORMAT_ARGB8888. Previously attempted to use ARGB0888 under some
circumstances, but glean failed and demos/texenv.c was also incorrect.
2005-01-19 12:06:17 +00:00
Keith Whitwell
6931087958
Remove depend on make clean
2005-01-19 11:39:23 +00:00
Keith Whitwell
520e56f232
Depend tweaks
2005-01-19 11:10:27 +00:00
Daniel Borca
c98323bd89
make sure we avoid assertion failure wrt VB->ColorPtr[1]->stride
2005-01-19 07:57:52 +00:00
Daniel Borca
9ebce91a66
glVertex* is the provoking "cmd" (that is, by the time of glVertex*, we must have all other attributes already set).
...
i am committing this before i forget. however, i'm still leaving my code disabled, because the old code seems legal.
2005-01-19 07:52:49 +00:00
Daniel Borca
59c2e16e75
There is no point trying to detect SSE at all, when MESA_NO_SSE is defined. I am committing this because the current WIN32 SSE detection code crashes UnrealTournament2003.
2005-01-19 07:43:13 +00:00
Brian Paul
c47d19a1a2
minor reorg of shader files, disable building for now
2005-01-18 22:58:13 +00:00
Alan Hourihane
41db4e1be5
remove some debug
2005-01-18 21:57:48 +00:00
Alan Hourihane
95be63771a
Fix tristrips (which fixes coloredTexPerf2 & coloredLitPerf2 glean tests)
2005-01-18 15:06:01 +00:00
Michal Krol
4cfd97e3a8
remove #ifndef linux, it isnt defined on Linux, where should I define it?
2005-01-18 14:21:50 +00:00
Michal Krol
c57a312978
comment out _THROW calls, dont want to compile under Linux
2005-01-18 14:19:46 +00:00
Michal Krol
fa32c92ea5
add shader/slang/slang_mesa.cpp
2005-01-18 14:17:37 +00:00
Michal Krol
a885c7a6e0
change .cc suffix to .cpp
2005-01-18 14:16:51 +00:00
Michal Krol
619f006bba
add slang preprocessor C sources; add slang include directories
2005-01-18 14:02:52 +00:00
Michal Krol
955190fbad
fix // comments
2005-01-18 13:58:56 +00:00
Michal Krol
092af29ea1
fix MAX_VERTEX_ATTRIBS_ARB query
2005-01-18 12:04:53 +00:00
Keith Whitwell
af72b4dd8e
Fix calculation of last_count in _tnl_wrap_buffers()
2005-01-18 08:41:55 +00:00
Brian Paul
7443c2caa6
added rule for compiling C++ sources
2005-01-17 22:33:50 +00:00
Michal Krol
db99b8b29d
add slang/ directory tree
2005-01-17 16:25:08 +00:00
Brian Paul
ea28a5b5b3
use FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)
2005-01-17 16:16:35 +00:00
Brian Paul
730fabd67a
fix some weirdness accidentally checked in in the past
2005-01-17 16:14:46 +00:00
Michal Krol
7d079fd780
2005-oct-19 3dlabs slang compiler, tweaked a little bit
2005-01-17 16:01:49 +00:00
Michal Krol
cc9ab78158
slang to mesa compatibility, tested only under Windows
2005-01-17 15:52:20 +00:00
Michal Krol
434f622ede
add 3dlabs_shhandle interface
2005-01-17 15:47:57 +00:00
Michal Krol
0a7ea2b0c3
add [.slang] to INCDIR, fix comma in OBJECTS
2005-01-17 15:35:46 +00:00
Michal Krol
389e292a1b
add src/mesa/shader/slang to INCLUDE_DIRS
2005-01-17 15:32:25 +00:00
Daniel Borca
ff39c65dee
cleaned up warnings
2005-01-17 08:05:47 +00:00
Daniel Borca
714c36c120
allow more internalFormat/format combinations (i hope i got it right)
2005-01-17 08:04:39 +00:00
Daniel Borca
d98c47300a
fix compilation error for fx/Mesa
2005-01-17 08:02:42 +00:00
Daniel Borca
6a432a7c50
since we've already messed up this one, let we do it further and make it look like a fire...
2005-01-17 07:48:53 +00:00
Daniel Borca
a6ddd2494a
remove trailing slash from TOP definition
2005-01-17 07:47:41 +00:00
Brian Paul
0a360cfab5
silence warning
2005-01-17 01:21:03 +00:00
Brian Paul
848ff85157
clean up gl2 structs
2005-01-17 01:07:00 +00:00
Brian Paul
fc3028d2c7
silence a bunch of warnings
2005-01-17 01:02:40 +00:00
Brian Paul
6c58ddae17
fix a few warnings
2005-01-17 00:40:29 +00:00
Brian Paul
b4199a1f71
added getstring.c
2005-01-16 19:42:46 +00:00
Brian Paul
5255044c00
added a few OpenGL 2.0 tokens (temporary)
2005-01-16 19:40:15 +00:00
Brian Paul
169a723d2b
_mesa_GetInteger/Float/Boolean/Doublev() are now generated with the new
...
get_gen.py Python script.
Moved GetString(), GetPointer(), GetError() into new getstring.c file.
2005-01-16 19:39:10 +00:00
Brian Paul
c07ec046b7
make tnl_clipspace_attr->insert field const, to silence warning
2005-01-16 17:59:50 +00:00
Aapo Tahkola
14aea4a485
This fixes it but why mipmaps still work?
...
It doesnt look like filter constants in r300_reg.h would define number of
levels.
2005-01-16 17:07:24 +00:00
Aapo Tahkola
781d512a0b
I was wrong...
2005-01-16 16:12:05 +00:00
Aapo Tahkola
82d1421736
Looks like masking masking t->filter isnt needed anymore.
...
texwrap still shows some problems with clamp mode with nearest filtering.
2005-01-16 13:28:49 +00:00
Felix Kuehling
ad360a81bd
Added a fast path for emitting unclipped primitives directly to a
...
vertex buffer. ELTS are not supported yet (missing functionality in
the DRM). You need at least Savage DRM version 2.1.3, which fixes a
bug that screwed up triangle fans and strips.
Moved the texture normalization stage to savagerender.c.
2005-01-16 01:28:26 +00:00
Vladimir Dergachev
ca710a0a7f
On the way to getting stencil working.
2005-01-15 20:44:23 +00:00
Vladimir Dergachev
76de160b64
On the way to getting stencil and texture formats working.
...
Looks like the matter of texture formats is a lot simpler, with the wrong
display in quake explained by the fact that we are not handling texture combine modes.
2005-01-15 19:33:19 +00:00
Felix Kuehling
b5f49e6f91
Converted to use spantmp2.h.
2005-01-15 14:37:33 +00:00
Felix Kuehling
c478a09a5b
Use HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
...
functions.
2005-01-15 14:35:35 +00:00
Vladimir Dergachev
dbb3ec35a7
Use symbolic constants to describe pixel shader ALU instructions.
2005-01-15 04:17:27 +00:00
Aapo Tahkola
ffe7496ac3
Added fixes for filter modes and support for anisotropy filters.
...
Wrap modes would work perfectly but i messed up something when cleaning up
the code :/ Border color code is incomplete because i forgot to check how to
set border size :)
2005-01-14 21:53:00 +00:00
Alan Hourihane
afa05e68b8
Enable line stippling.
2005-01-14 16:56:52 +00:00
Keith Whitwell
4ccee80190
Fix previously un-noticed issue with flat-shaded points.
2005-01-14 15:03:00 +00:00
Alan Hourihane
faf96a157d
silence a warning
2005-01-14 13:11:34 +00:00
Alan Hourihane
42cfcce8d4
Get PolygonStipple working.. (or seemingly too). It seems to do the right
...
things now given the demos I've used and passes glean's paths test.
2005-01-14 13:10:50 +00:00
Alan Hourihane
38595eda39
16bpp doesn't support masked clears, so fallback when they're enabled.
2005-01-14 13:02:53 +00:00
Keith Whitwell
96d375c682
Populate WriteMonoDepthSpan in 24/8 modes.
2005-01-14 13:01:21 +00:00
Daniel Borca
404273ad09
changed coding style. made `glutTimerFunc' less accurate, but far more reliable.
2005-01-14 08:50:08 +00:00
Daniel Borca
0c68589673
changed coding style. added possibility to use default timer instead of PC/HW timer.
2005-01-14 08:44:29 +00:00
Daniel Borca
aa7a27b38e
changed coding style. added a NULL pointer check.
2005-01-14 08:40:43 +00:00
Daniel Borca
7da875d55f
changed coding style
2005-01-14 08:37:20 +00:00
Daniel Borca
f4bff83c32
doc update
2005-01-14 08:31:50 +00:00
Vladimir Dergachev
52f5ff525b
Remove redundant register.
...
Hook up some functions in r300Enable().
2005-01-14 06:39:14 +00:00
Vladimir Dergachev
517ac1bf25
Reduce amount of stderr output.
...
Switch to using R300_EASY_TX_FORMAT() macro everywhere.
2005-01-14 05:26:17 +00:00
Vladimir Dergachev
2821b05a0f
Incorporate latest data from Wladimir van der Laan.
2005-01-14 04:21:55 +00:00
Vladimir Dergachev
d2001bd88f
Sync with master copy.
2005-01-13 23:13:52 +00:00
Dave Airlie
f11d6d4cb4
add -DUSE_EXTERNAL_DXTN_LIB=1 so compressed textures are enabled for solo
2005-01-13 22:38:21 +00:00
Alan Hourihane
288114b9db
remove some dead texture code
2005-01-13 17:53:01 +00:00
Felix Kuehling
a7ab2b2e0b
Make sure DMA buffers are released in savageDestroyContext. Usually
...
the DRM would reclaim DMA buffers, but if one process creates and
destroys many contexts it can still run out of DMA buffers.
2005-01-13 16:02:05 +00:00
Keith Whitwell
b1d322a1e7
Fix loop for quads-as-triangles.
2005-01-13 15:58:05 +00:00
Keith Whitwell
c06f8cb9e5
Rename via_fastrender_* to avoid confusion with similar functions in
...
via_render.c.
2005-01-13 15:49:39 +00:00
Keith Whitwell
a0371b0b3c
Simplify viaChooseVertexState slightly.
2005-01-13 14:57:34 +00:00
Keith Whitwell
d9af44f358
Remove misleading comment.
2005-01-13 14:54:44 +00:00
Keith Whitwell
edd21a6f72
Typo
2005-01-13 14:52:24 +00:00
Keith Whitwell
db19ae89f2
Emit constant colors for texunit 1 blending.
...
Change comments and some code to match naming used in the docs.
2005-01-13 14:38:17 +00:00
Michal Krol
436f4bbd62
add s_atifragshader.c, s_atifragshader.h
2005-01-13 14:15:36 +00:00
Michal Krol
7f3e2dac7a
3dlabs glslang frontend
2005-01-13 14:14:55 +00:00
Michal Krol
302a414b34
3dlabs glslang frontend, not complete
2005-01-13 14:14:11 +00:00
Michal Krol
01d38cdf0c
cosmetic changes
2005-01-13 14:13:19 +00:00
Michal Krol
6324f73b93
implement ARB_shader_objects, not complete
2005-01-13 14:12:50 +00:00
Michal Krol
8b7cc45f3d
add atifragshader.c, shaderobjects.c, shaderobjects_3dlabs.c, atifragshader.h,
...
shaderobjects.h, shaderobjects_3dlabs.h
2005-01-13 14:12:01 +00:00
Michal Krol
b05e75bf69
add shaderobjects_3dlabs.c
2005-01-13 14:10:37 +00:00
Michal Krol
3d52858c78
add ARB_shader_objects interfaces, shared and context state
2005-01-13 14:09:58 +00:00
Michal Krol
0e85388ba8
enable ARB_fragment/vertex_shader
2005-01-13 14:09:18 +00:00
Michal Krol
9b3752c8ab
init ARB_shader_objects subsystem
2005-01-13 14:08:47 +00:00
Michal Krol
8f8534f691
add shader/shaderobjects_3dlabs.c
2005-01-13 14:08:00 +00:00
Keith Whitwell
df14522540
cut out dead texture state code
2005-01-13 13:00:23 +00:00
Alan Hourihane
5bd6a5f2df
revert some makecurrent code
2005-01-13 12:03:00 +00:00
Alan Hourihane
db93e6165e
Fix glean scissor test
2005-01-13 10:20:16 +00:00
Vladimir Dergachev
d4330fc322
Prevent "disabling 3D acceleration" message from printing - we do not define raster functions anyway.
2005-01-13 09:08:58 +00:00
Vladimir Dergachev
d456ef48e5
Incorporate TX_FORMAT information contributed by Wladimir van der Laan.
...
Attempt to use it in r300_state.c
We are still missing something and the formats do not quite work.
Perhaps something in texture management code ?
2005-01-13 09:05:31 +00:00
Alan Hourihane
3ff4eca05c
As we fallback for polygon stipple on the CLE266 for now, ensure we
...
don't turn on the polygon stipple hardware bit.
2005-01-13 00:15:28 +00:00
Alan Hourihane
cce4d5cb70
Use the faster span read/write template for 16bpp
2005-01-12 23:16:28 +00:00
Keith Whitwell
88440d2d75
Don't special-case 16bpp for colormask register - not needed.
2005-01-12 21:55:47 +00:00
Keith Whitwell
8e5281fbe1
Simplify usage of drmHash functions and fix bug in
...
__driGarbageCollectDrawables which would get confused while walking
the hash values.
2005-01-12 21:04:03 +00:00
Keith Whitwell
0aca086f7a
free buffer in t_vertex_c.c on context delete
2005-01-12 19:38:41 +00:00
Keith Whitwell
8e46534b3b
Remove bogus write to freed memory (valgrind).
2005-01-12 19:27:49 +00:00
Alan Hourihane
118b82145a
Check for deletion of currently bound context
...
Other minor cleanups
2005-01-12 19:24:39 +00:00
Keith Whitwell
f9b89910d1
new test to exercise context and window create/delete
2005-01-12 19:11:47 +00:00
Alan Hourihane
7ea2084513
Fixes lockups initializing AGP DMA.
2005-01-12 18:32:51 +00:00
Keith Whitwell
4676a6ab7b
Expand out the N(x) macro so that tags can find functions like
...
drmHashFirst(), etc.
2005-01-12 18:14:42 +00:00
Alan Hourihane
2937d403db
build fixes and enable agp dma
2005-01-12 17:33:09 +00:00
Keith Whitwell
708e25142b
Add flag to clear texture caches after texture upload.
2005-01-12 17:20:29 +00:00
Keith Whitwell
5ba7d85fea
Don't emit HC_SubA_HSPXYOS on CLE266.
2005-01-12 17:20:08 +00:00
Keith Whitwell
09ac1d1125
Allow two GL primitives to be combined to one HW primitive
...
if possible.
2005-01-12 13:33:27 +00:00
Alan Hourihane
26dcb88fb9
Fix multitexturing.
...
The multiarb test works now when disabling texunit0/1.
2005-01-12 12:45:42 +00:00
Daniel Borca
a9531eb2c5
some "safer" type-punning (gcc optimizes float moves with integer moves, anyway).
2005-01-12 09:25:37 +00:00
Brian Paul
d7b837ad4a
temporary prototypes for OpenGL 2.0
2005-01-12 04:06:55 +00:00
Brian Paul
2a34e66d6a
OpenGL 2.0 StencilFunc/Op/MaskSeparate functions
2005-01-12 04:01:54 +00:00
Brian Paul
a9e34c68ac
Some initial work for OpenGL 2.0: glStencilFunc/Op/MaskSeparate() functions.
2005-01-12 04:01:08 +00:00
Ian Romanick
591b72b6a9
Added a couple missing proxy types.
2005-01-11 23:50:01 +00:00
Aapo Tahkola
ff04e50e2e
Mipmapping and other texture filters now work.
...
Beaware that R300_TX_MIN_FILTER_MASK might be incorrect because i havent
been able to confirm that all filters operate correctly. Because of this its
also pretty pointless trying to get other features that use filter field to
work.
Lod bias should also work but have been unable to test it because lodbias
test doesnt work.
2005-01-11 23:34:55 +00:00
Ian Romanick
d24e49f301
Put quotes around the CC and CXX variables passed to mklib. This make
...
them work with multi-work compiler names (e.g., "ccache gcc").
2005-01-11 22:43:45 +00:00
Alan Hourihane
5b28844dba
fix a typo
2005-01-11 18:43:21 +00:00
Keith Whitwell
3bd6e3d532
Disable bogus pbuffer code (though this could be revived with a little
...
attention).
Correctly advertise FBConfigs with GL_BGRA rather than GL_BGR.
2005-01-11 17:12:48 +00:00
Alan Hourihane
5b5e6cc120
Fix the calculation of the alpha reference value which negates the
...
need for the big nasty fallback - so I've commented out that code.
2005-01-11 17:09:47 +00:00
Keith Whitwell
aac4d8857a
Temporarily disable pageflipping assert.
2005-01-11 17:06:09 +00:00
Alan Hourihane
8e039bf40a
uncomment
2005-01-11 16:44:18 +00:00
Alan Hourihane
f29aaf80a4
Fix ColorMask
2005-01-11 16:42:56 +00:00
Brian Paul
cdb6541634
prototype _mesa_init_ati_fragment_shader()
2005-01-11 15:56:47 +00:00
Michal Krol
43343913b9
aliasing was broken
2005-01-11 15:47:16 +00:00
Keith Whitwell
b13eaf2698
Add a big nasty fallback for AlphaTest -- seems to always be wrong
...
on CLE266 because Z values are written even for fragments which
fail the test.
2005-01-11 15:40:06 +00:00
Alan Hourihane
51365b2d0d
fallback on polygon.stippleflag (thanks Keith)
2005-01-11 15:24:24 +00:00
Brian Paul
0275d921ac
VMS updates from Jouk Jansen
2005-01-11 15:23:08 +00:00
Daniel Borca
94dd520210
applied Keith's patch for "safe" type-punning.
...
made IS_NEGATIVE produce a boolean (useful when xoring with other booleans).
2005-01-11 10:56:39 +00:00
Alan Hourihane
5358682aa7
Fix usage of texture units, when TEX1 is enabled, but not TEX0.
2005-01-11 09:52:10 +00:00
Vladimir Dergachev
0cb0a36d8c
Get NeHe lesson08 to work. Note: it appears the filtering does not work properly. Need to find place where it is broken and put an fprintf() complaining about it.
2005-01-11 06:22:55 +00:00
Vladimir Dergachev
d5432ac584
Switch back to using immediate mode code - use of AGP space is interfering with texture management.
...
Ideally, r300_render is ready to be rewritten to use standard Mesa include files, but I don't think I'll get around to it.
2005-01-11 05:59:07 +00:00
Vladimir Dergachev
864137984a
Move the few definitions from r300_lib.h still in use to r300_emit.h.
...
Rework *vb* function to not use AOS_ARRAY structure, but rather work directly with r300->state.aos.
Remove references to r300_lib.h and r300_lib.c
Remove r300_lib.[c,h].
2005-01-11 04:11:05 +00:00
Vladimir Dergachev
086ca3dffb
Switch r300_state.c to use r300_fixed_pipelines.h instead of r300_lib.h.
...
This fixes potentially buggy memcpy()'s between potentially different structures.
2005-01-11 03:55:04 +00:00
Vladimir Dergachev
dd4837502c
Copy sample pixel and vertex shaders to r300_fixed_pipelines.h
2005-01-11 03:50:04 +00:00
Brian Paul
14e98b7d7c
remove a debug line
2005-01-10 23:16:49 +00:00
Brian Paul
ff53a4ee13
tweak output formattting, fixed uninitialized var error
2005-01-10 23:15:59 +00:00
Felix Kuehling
86f1439f82
Fixes to cope with the lack of AGP textures. This is all that's needed
...
to support PCI Savages on the Mesa side. Bumped driver date.
2005-01-10 22:49:00 +00:00
Alan Hourihane
9db66a3f9f
Fallback on PolygonStipple for CLE266 hardware.
...
Only upload stencil configuration when a stencil buffer exists.
2005-01-10 19:44:59 +00:00
Brian Paul
eaf2b170ff
Windows/ReactOS patch (Gregor Anich)
2005-01-10 16:23:21 +00:00
Keith Whitwell
574f3c7daf
More changes to cope with color stride == 0
2005-01-10 14:36:25 +00:00
Keith Whitwell
a887a44b2d
Fix segfault in pipes by dealing with stride == 0 case in generic_interp_extras
2005-01-10 12:30:08 +00:00
Vladimir Dergachev
8c231d2e28
Bring vertex buffer code up to date..
2005-01-10 05:24:28 +00:00
Vladimir Dergachev
6867117b58
For some reason we need r300Flush when using textures. Perhaps the problem is
...
with BITBLT_MULTI call ?
2005-01-10 03:42:50 +00:00
Vladimir Dergachev
5f61c6f21f
Clean up the code and make it unnecessary to issue extra calls to Setup*Shaders
...
in the r300_run_immediate_render function.
Bumps up glxgears fps count by about 100 points.
2005-01-10 03:22:54 +00:00
Vladimir Dergachev
8ad31013b2
Port EmitPixelShader from cmdbuf.c to SetupPixelShader in state.c.
2005-01-09 23:37:03 +00:00
Vladimir Dergachev
e9acd0ca5f
Implement a more elaborate hashing scheme for texture formats. Still not perfect.
...
Transform EmitVertexShader in cmdbuf.c to SetupVertexShader in state.c.
The latter is only temporary and is to be rewritten to auto-generate shaders based on current GL context.
2005-01-09 22:38:53 +00:00
Brian Paul
527af7571e
minor readtex fixes
2005-01-09 18:05:02 +00:00
Brian Paul
612bf1fa2e
improved animation rate
2005-01-09 18:00:49 +00:00
Brian Paul
7a663b315e
rotate at fixed rate, changed fire effect (Marcelo Magallon)
2005-01-09 17:52:48 +00:00
Brian Paul
a00c591511
rotate at fixed rate (Marcelo Magallon)
2005-01-09 17:50:27 +00:00
Brian Paul
a4a31c5d76
use #ifdef to test for extension
2005-01-09 17:39:36 +00:00
Brian Paul
2d84ed83c4
include readtex.h
2005-01-09 17:39:06 +00:00
Brian Paul
92eddb0fd4
better animate rate (Marcelo Magallon)
2005-01-09 17:37:50 +00:00
Brian Paul
516f9bc6e3
some new/improved rules
2005-01-09 17:26:08 +00:00
Brian Paul
575d24a5ff
include readtex.h instead of readtex.c
2005-01-09 17:15:41 +00:00
Brian Paul
0fe7f406be
include readtex.h instead of readtex.c (Marcello Magallon)
2005-01-09 17:06:22 +00:00
Brian Paul
b58091a336
Add #ifdefs for extension testing (Marcello Magallon)
2005-01-09 17:00:57 +00:00
Brian Paul
429efa9f00
animation rate patch (Marcello Magallon)
2005-01-09 16:52:53 +00:00
Brian Paul
1b058a06c2
rotate at a reasonable rate
2005-01-09 16:48:52 +00:00
Brian Paul
c1065ee977
compute reasonable animate rate (Marcelo Magallon)
2005-01-08 23:52:01 +00:00
Brian Paul
0261042beb
fix-up rules for sphere demo, which uses readtex utility
2005-01-08 23:51:50 +00:00
Felix Kuehling
b45ce5c607
* Flush and wait in per-primitive fallback functions. Fixes flickering
...
stars in glplanet.
* Refactored vertex format choosing code. Improved the Savage4 version
to choose a format suitable for DMA (size = 32bytes) whenever
possible.
2005-01-08 23:39:19 +00:00
Felix Kuehling
e4499ed276
Added missing break; to fix infinite recursion between choose_emit_func
...
and emit_viewport4_bgra4_st2_st2.
2005-01-08 15:51:11 +00:00
Felix Kuehling
675b92515a
Added state debugging option (SAVAGE_DEBUG=state).
...
Fixed: Use savageEmitChangedRegs instead of savageEmitContiguousRegs for
emitting Savage4.
2005-01-08 15:03:25 +00:00
Adam Jackson
1074eae704
Enable libGL to be built with DRI_NEW_INTERFACE_ONLY (but don't do it yet).
2005-01-08 03:54:38 +00:00
Adam Jackson
ccaa15a081
Parallel build fix. Multiword variables on the target side of a : get
...
expanded into individual rules for each word, so parallel builds will
start multiple instances to create the server/ symlinks and fail when they
already exist.
2005-01-08 03:16:04 +00:00
Keith Whitwell
f1481aa2d7
Add t_vb_cull.c (Bernard Blackham)
2005-01-07 18:35:28 +00:00
Keith Whitwell
f0e4f5e556
And fix the obvious bugs in higher-numbered templates.
2005-01-07 16:43:39 +00:00
Keith Whitwell
ae73b3d5ed
Templatize the fastpaths.
2005-01-07 16:25:40 +00:00
Keith Whitwell
fa1362241b
Add some more hardcoded fastpaths.
2005-01-07 15:54:48 +00:00
Keith Whitwell
5fff0c135d
Cope with the possibility that incoming vectors may have
...
count < VB->Count.
Remove code to deal with the (should-be) impossible situation of null
input vectors.
2005-01-07 15:27:41 +00:00
Keith Whitwell
5911d87315
Use the 'to' vector to determine the loop count.
2005-01-07 15:26:02 +00:00
Keith Whitwell
e0be62e2c5
Remove -C flags for install which aren't universally supported.
2005-01-07 15:24:59 +00:00
Felix Kuehling
85243b8120
Fixed: ptex drawing functions were overridden with standard drawing
...
functions if ANY_RASTER_FLAGS|ANY_FALLBACK_FLAGS were set.
2005-01-07 10:55:13 +00:00
Keith Whitwell
b3d772bd9a
Add a clean target to remove generated files.
2005-01-07 10:36:14 +00:00
Keith Whitwell
5cd24d4dc2
Add a noop install target
2005-01-07 10:35:51 +00:00
Keith Whitwell
8764441b58
Improve the semantics of the 'install' target to make sure the right
...
file is really being installed. Useful if you have multiple versions
of a single driver directory hanging around and want to switch between
them for testing.
2005-01-07 10:35:23 +00:00
Keith Whitwell
000dd4afe2
Add an install target
2005-01-07 10:34:13 +00:00
Keith Whitwell
1837dda4d8
Make clean in the x86 directory.
...
Propogate 'install' target down to dri driver directory.
2005-01-07 10:34:00 +00:00
Ian Romanick
a11659adaf
Use GNU AS label aliasing, if available. This must be enabled by adding
...
'-DHAVE_ALIAS' to DEFINES in the config file used for building. On the
linux-dri-x86 build, this cuts 4KB from libGL.so. HAVE_ALIAS is not
currently enabled in any of the configs.
2005-01-07 03:41:48 +00:00
Ian Romanick
0f34f3efb8
Script to generate rough GLX protocol documentation (as might be seen in
...
an extension spec). It's not perfect, and it doesn't support certain
functions that other scripts here can (e.g., pixel functions). However,
it is a good start and has already proven useful to me.
2005-01-07 03:23:59 +00:00
Ian Romanick
a285acbbef
Track the GLX protocol names for GL types.
2005-01-07 03:22:56 +00:00
Ian Romanick
70d2f152f8
Refactor the code that converts a transpose-matrix enum to a
...
regular-matrix enum.
2005-01-07 02:53:04 +00:00
Ian Romanick
5f1f229f8d
Pixel oriented render functions are now generated by the
...
glX_proto_send.py script. This eliminates ~600 lines of non-generated
code. With proper compiler optimization settings, it also decreases the
size of libGL.so by about 3KB.
2005-01-07 02:39:09 +00:00
Ian Romanick
3385d7cec3
The generic_*_byte functions did not rount the command size to a
...
multiple of 4 correctly in some cases.
2005-01-07 02:29:42 +00:00
Brian Paul
ba5ceda7e0
added GetAllFBConfigs()
2005-01-07 01:17:42 +00:00
Ian Romanick
7e3379b1a0
Revert some accidental cross-merge changes. Remove i915GetString. Migrate
...
a couple extensions that appeared in both device-specific card_extensions
strings to the shared one.
2005-01-07 00:48:24 +00:00
Brian Paul
71fc6a3fc9
New GetAllFBConfigs() function. Some FBConfigs weren't reported before.
2005-01-06 23:59:37 +00:00
Brian Paul
1f98ee9022
In choose_visual() we need to know if we're being called from
...
glXChooseVisual() or glXChooseFBConfig() so that we handle the
GLX_DOUBLEBUFFER and GLX_STEREO tokens correctly.
Added some new error checking in those functions too.
2005-01-06 21:56:16 +00:00
Aapo Tahkola
8bb717d2d5
Add radeon 9550 pci id.
2005-01-06 19:26:25 +00:00
Keith Whitwell
a61ee65910
Redraw on keypress, as apparently intended.
2005-01-06 17:12:56 +00:00
Alan Hourihane
a2db56b34b
Add Intel i915GM support, and these extensions.
...
* GL_ARB_texture_cube_map
* GL_EXT_blend_equation_separate
* GL_ATI_blend_equation_separate
* GL_ARB_point_parameters
* GL_NV_blend_square
* GL_EXT_cull_vertex
* GL_ARB_depth_texture
* GL_SGIX_depth_texture
* GL_ARB_shadow
* GL_EXT_shadow_funcs
* GL_3DFX_texture_compression_FXT1
(Keith Whitwell, Tungsten Graphics)
2005-01-06 14:35:44 +00:00
Daniel Borca
9f149bf206
semantic in parameter names
2005-01-06 14:34:48 +00:00
Daniel Borca
d401faf877
semantic in parameter names. changed emitter function.
2005-01-06 14:09:18 +00:00
Thomas Hellström
4c1d373ce1
Small Unichrome fixes:
...
1. Unlock hardware before aborting and dumping DMA buffers. Otherwise display system may deadlock.
2. Fix DMA init IOCTL call that got mixed up in one of the previous commits.
3. Fix AGP command alignment
2005-01-06 13:51:37 +00:00
Daniel Borca
dd1ef7c0d7
semantic in parameter names
2005-01-06 07:46:37 +00:00
Daniel Borca
5135d37813
solved classic "char*" vs "char[]" conflict. we were mimicking a pointer variable at desired location and then we took its address. using array is more intuitive, as they give us the starting address instantly.
2005-01-06 07:45:17 +00:00
Daniel Borca
ed1fc20199
protected against elfish directives
2005-01-06 07:40:33 +00:00
Daniel Borca
9b7367154b
semantic in parameter names
2005-01-06 07:38:28 +00:00
Daniel Borca
994d5cc5f4
removed detritus
2005-01-06 07:37:32 +00:00
Daniel Borca
7047cb08eb
added "default" branch in `convertPalette'
2005-01-06 07:36:56 +00:00
Daniel Borca
50122c9d2d
fix dstRGB factor
2005-01-06 07:35:46 +00:00
Vladimir Dergachev
e09c843c13
Turns out the kfountain.kss (as well as lesson19) had a bug - the size was set wrong. Fixed.
2005-01-06 04:39:51 +00:00
Vladimir Dergachev
91538b4432
Add texture format to get lesson19 working again.
2005-01-06 04:02:52 +00:00
Vladimir Dergachev
dbc125eede
Switch to a more complicated scheme of choosing texture formats, as it looks
...
like the old one was prone to collisions (different value of format field was
required for same values of t->format going in).
Now use a hash for these purposes - this got kfiresaver.kss and lesson06 workingfrom the same code.
2005-01-06 03:56:18 +00:00
Ben Skeggs
7b51aa54be
Added GL_POLYGON primitive. Single primitive between glBegin()/glEnd() now works.
2005-01-06 00:10:11 +00:00
Felix Kuehling
3e4d4aca77
* Fixed handling of scissors
...
* Only set scissor regs directly if drmMinor < 1
* Don't set texaddr to 0 when a texture unit is disabled. That would trigger
the tightened texture state check in the DRM if the texaddr and texdesc
registers were not emitted atomically.
2005-01-05 23:56:16 +00:00
Alan Hourihane
1e21673ea1
support 720x480 and 960x540 modes
2005-01-05 22:40:34 +00:00
Alan Hourihane
ee2761f2f3
Only try to free the front buffer when it's a pbuffer.
2005-01-05 21:49:52 +00:00
Keith Whitwell
699fc6baf9
Make the format of the fastpaths cleaner at the expense of a little
...
performance.
Add fastpaths for some more common vertex formats.
2005-01-05 20:56:05 +00:00
Alan Hourihane
609e54820c
fix build problem
2005-01-05 20:13:04 +00:00
Keith Whitwell
99fc261c47
Improve some quad paths, gives gears a little boost.
2005-01-05 18:14:38 +00:00
Keith Whitwell
dd9666bc1d
Give attributes with zero-stride a count of 1 to make it easier
...
to avoid transforming the same attribute multiple times.
Don't light a single normal multiple times in light_fast_rgba*
2005-01-05 18:06:05 +00:00
Keith Whitwell
30f6486276
make alloc-dma functions inline, rearrange some debug
2005-01-05 13:51:38 +00:00
Keith Whitwell
830e046972
Avoid a segfault in multiarb.c
2005-01-05 13:51:03 +00:00
Alan Hourihane
e3fe80a60f
Bring VIA driver up-to-date with regard to drm_*_t changes and remove
...
the xf86drmVIA.[ch] files.
Bring in the IRQ handler and Ring buffer code, but ring buffer is disabled
as it is with the Xserver. It certainly locks up the CLE266.
2005-01-05 13:45:09 +00:00
Keith Whitwell
9a8a9fb01f
Add a couple of hardwired fastpaths to t_vertex.c.
2005-01-05 12:58:14 +00:00
Keith Whitwell
d5b1605449
If there is only one normal, don't transform it multiple times.
2005-01-05 11:10:05 +00:00
Vladimir Dergachev
380ba2daec
Reduce the amount of debug output, while still printing important messages.
...
Make guessing texture formats easier.
2005-01-05 04:56:23 +00:00
Vladimir Dergachev
e99f390ff6
Play a little bit with texture formats.
...
Get NeHe demos 06, 07 and 19 working.
2005-01-05 00:18:46 +00:00
Vladimir Dergachev
065f725672
Sync with master copy.
2005-01-04 22:52:53 +00:00
Vladimir Dergachev
6b185aaedf
Port code from r200 that implements color blending. Seems to work.
...
This can be tested with lesson19 from NeHe.
This has also shown that the alpha code does not work - we pick up a red tint
for transparent pixels somewhere.
2005-01-04 20:25:11 +00:00
Vladimir Dergachev
55ee1daaf9
Unify rendering of textured and non-textured primitives.
2005-01-04 19:15:37 +00:00
Vladimir Dergachev
638faa92fc
Major code restructuring:
...
* move proven code into the r300_state.c
* update ClearBuffer to cope with more dynamic state
* cleanup !
2005-01-04 18:59:47 +00:00
Brian Paul
85edffd5ff
added GLX_NV_float_buffer
2005-01-04 14:48:14 +00:00
Brian Paul
932dee87e3
use HIDDEN macro to export fewer symbols (bug 2210)
2005-01-04 14:33:47 +00:00
Brian Paul
bdbdab837e
directfb changes (Claudio Ciccani)
2005-01-04 14:19:25 +00:00
Keith Whitwell
6650264802
Add GL_EXT_fog_coord
2005-01-04 12:57:02 +00:00
Keith Whitwell
31c25f2edc
Add GL_EXT_secondary_color
2005-01-04 12:56:17 +00:00
Keith Whitwell
e024cae14b
Turn specular lighting state on/off appropriately.
2005-01-04 12:53:41 +00:00
Keith Whitwell
b6ab7a1bf1
Change to use the t_vertex.c mechanisms for building vertices,
...
including Felix's ptex code.
Re-enable some assembly for performance.
2005-01-04 12:18:05 +00:00
Brian Paul
f72e4424d9
Use the GLX 1.3 pbuffer/fbconfig functions in preference to the SGIX ones.
...
Added more functions to pbutil.[ch] to better isolate API differences.
2005-01-04 00:58:29 +00:00
Felix Kuehling
e3748eb19b
Added support for floating point depth buffers on Savage4-based
...
hardware. By also reversing the depth range this can compensate the loss
of accuracy of far objects caused by the projective transformation.
Software fallbacks work but are slightly slower since floats in a custom
(non IEEE) format have to be encoded and decoded. I havn't done anything
about polygon offsets yet. There doesn't seem to be an easy way do get
it right except making the offset unit as big as the lowest resolution
of depth values. For now float depth is disabled by default but can be
enabled through driconf (though I have seen only positive effects so
far).
2005-01-03 22:24:44 +00:00
Felix Kuehling
87889aeab4
Added a boolean option for a floating-point depth buffer.
2005-01-03 22:15:41 +00:00
Ian Romanick
3276c192b7
The opcode and command length fields of RenderLarge commands were
...
mistakenly emitted in the wrong order.
2005-01-03 21:03:03 +00:00
Brian Paul
dd1a817c50
latest updates
2005-01-03 15:55:51 +00:00
Vladimir Dergachev
a5039af357
Add structs describing vertex and pixel shader state to r300_state.
...
Take apart program_pipeline() and move it into appropriate pieces within the driver.
Test the framework on run_flat_render()
2005-01-03 15:45:10 +00:00
Brian Paul
8e73b14228
bump version to 6.3, etc.
2005-01-03 15:36:27 +00:00
Brian Paul
81ca616e7e
DirectFB driver (Claudio Ciccani)
2005-01-03 15:35:00 +00:00
Brian Paul
6563c16e38
updates from Jouk
2005-01-03 15:01:26 +00:00
Vladimir Dergachev
25faa2d56e
Turns out I left flat primitives in vertex buffer mode. Switch them back to immediate which works correctly..
2005-01-03 06:53:38 +00:00
Vladimir Dergachev
63473a8e76
Enable code to compute other constants that were used by R200 code.
...
Add fprintf to print these constants.
Correct t->size computation, so it works now.
2005-01-03 06:48:50 +00:00
Vladimir Dergachev
2fc9351ee7
Port texture allocation code from R200.
...
Hook it up, so lesson06 displays red colored textures.
2005-01-03 05:44:20 +00:00
Vladimir Dergachev
63fd67e561
Add texture units registers
2005-01-02 21:53:53 +00:00
Vladimir Dergachev
f50a1964d1
Cleanup !
...
I can not trigger any lockups now..
2005-01-02 06:16:44 +00:00
Vladimir Dergachev
d6be8dd651
I think I fixed the lockups issue.
2005-01-02 05:57:15 +00:00
Vladimir Dergachev
9a04b25c60
Get textures to work with NeHe lesson06.
...
The code is still disabled since we are displaying random image data instead of actual texture and because I had to put a sleep(1) in lesson06 drawing loop to prevent lockups.
2005-01-02 04:46:25 +00:00
Adam Jackson
3c80f5c56b
linux-dri-x86 build fix from Andreas Stenglein.
2005-01-02 03:36:53 +00:00
Felix Kuehling
7a231da442
Improved the performance of software fallbacks by not waiting for idle
...
in every single span function. Instead flush and wait in the
SpanRenderStart hook and in wrappers around _swrast_Copy/Draw/ReadPixels.
Misc. cleanups in savagespan.c while I'm there.
2005-01-02 01:22:10 +00:00
Felix Kuehling
1067ce0cea
Removed all direct hardware access (MMIO, BCI) from the Savage DRI
...
driver. It uses the new DRM version 2.0.x now, which has just been
committed to DRM CVS.
2005-01-01 20:40:14 +00:00
Felix Kuehling
467d64a177
Use DRM headers from $(DRM_SOURCE_PATH)/shared-core instead of .../shared.
2005-01-01 20:33:45 +00:00
Vladimir Dergachev
404d925b58
Add a convenience function to issue CP delays.
2005-01-01 18:41:43 +00:00
Vladimir Dergachev
e443d1ec47
Qualify the magic 20B0 register as SE_VTE_CNTL similar to R200. Looks like disabling Z offset and scaling displays gears properly, not sure why. Perhaps the meaning of the bits has changed ?
...
Cleanup code a bit.
2004-12-31 21:28:36 +00:00
Vladimir Dergachev
92d47e79f1
Sync with master copy.
2004-12-31 20:57:48 +00:00
Vladimir Dergachev
11374bdb86
Add texture drawing code. Note: it is broken at the moment and is disabled in CVS. However, all hooks are there.
...
Fix vertex buffer drawing code.
2004-12-31 19:39:03 +00:00
Vladimir Dergachev
24b5e49141
Rework slightly r300_get_primitive_type - make it clearer and more compact..
2004-12-30 20:24:30 +00:00
Keith Whitwell
179cc373f1
Get scissor test working again. Passes glean scissor test.
2004-12-30 17:47:08 +00:00
Keith Whitwell
c664f0c515
Calculate DEPTH_SCALE correctly for polygon offset.
2004-12-30 16:30:26 +00:00
Keith Whitwell
8be4747fd6
Simplify viaBlit a bit more.
...
Implement masked clears.
2004-12-30 16:13:35 +00:00
Vladimir Dergachev
4a04f002db
Add missing files.
2004-12-30 16:06:37 +00:00
Keith Whitwell
8f1ba083ba
Initialize depth pointer correctly.
2004-12-30 16:05:07 +00:00
Keith Whitwell
58cc2e9124
Don't need to adjust for drawXoff in fallback clipping.
2004-12-30 15:58:45 +00:00
Keith Whitwell
18551e75ea
fix regression with fallbacks from recent commits
2004-12-30 14:32:19 +00:00
Keith Whitwell
6fcc6c4965
Fix MagFilter state for texunit 0
2004-12-30 14:21:46 +00:00
Vladimir Dergachev
bcd1a9ed68
Update vertex buffer code (still does not work properly..)
2004-12-30 11:43:04 +00:00
Vladimir Dergachev
2269445f6d
Update to recent r300_lib.
...
Cleanup code that is not relevant anymore.
Play with unknown2 parameter.
2004-12-30 11:17:42 +00:00
Vladimir Dergachev
b53030a94c
Hooked up projection matrix - the gears actually rotate !
2004-12-30 10:27:04 +00:00
Vladimir Dergachev
a656dc251e
Restructure code.
...
Add drawing code that uses vertex buffers - does not lockup, but does not draw correctly either.. Perhaps something to do with vertices being overwritten ?
Start using hardware state retained by the driver and cut back on direct register writes significantly.
2004-12-30 10:11:39 +00:00
Vladimir Dergachev
51050efe0e
Change default RS settings so that glxgears will display something..
2004-12-30 07:50:15 +00:00
Vladimir Dergachev
7d8c1fb03a
Clarify some of the unkXXXX atoms.
2004-12-30 07:11:28 +00:00
Vladimir Dergachev
74bf43051c
Port viewport setting code from R200.
...
Take it outside R300ResetHwState.
2004-12-30 06:06:54 +00:00
Keith Whitwell
5be14fd59a
Fix some wrapping bugs in the last commit. Probably there are more
...
remaining.
2004-12-29 21:17:06 +00:00
Keith Whitwell
490e764d7a
Simplfy clear() and swapbuffers() code.
...
Fix various mishandling of cliprects.
Allow multiple primitives to be emitted to a single dma buffer, which
was largely impossible previously.
Re-enable the fast unclipped render stage.
2004-12-29 20:46:27 +00:00
Keith Whitwell
ef494c06b6
Use Point._Size in calculation
2004-12-29 14:38:17 +00:00
Keith Whitwell
54ef88109b
use clamped Line._Width in calculations
2004-12-29 14:36:58 +00:00
Keith Whitwell
e158292ee3
Don't advertise wide lines or points.
2004-12-29 14:09:21 +00:00
Keith Whitwell
e972497310
Make line stipple a fallback.
...
Make sure fallbacks are wrapped by SpanRenderStart/SpanRenderFinish
2004-12-29 14:06:09 +00:00
Keith Whitwell
f102f7ae3d
Don't pingpong cliprects through sarea on CopyBuffer().
2004-12-29 14:05:16 +00:00
Keith Whitwell
cb0cc796d2
Fallback on 3d textures correctly.
2004-12-29 13:03:12 +00:00
Keith Whitwell
3b486d795d
Get twoside-lit triangles working again
2004-12-29 12:48:50 +00:00
Keith Whitwell
13ae06cf36
Large update
...
- Remove via duplicates of shared template files
- Update driver to work with current versions of the above
- Rework dma accounting
- Rework emitting to dma to use a consistent set of macros
The handling of cliprects in the driver is still pretty questionable.
2004-12-29 12:39:50 +00:00
Vladimir Dergachev
7b05b70c2a
Rearrange code so we don't dump state as often.
2004-12-29 04:51:46 +00:00
Vladimir Dergachev
4c3f041862
Get most primitives working using immediate mode.
...
Glxgears displays "rotating" gears, all in the same place (no transform mode, remember ?)
Work needs to be done to understand how to have glxgears working properly.
2004-12-29 04:33:33 +00:00
Vladimir Dergachev
5bdb4652f9
Bring in latest revision of r300_lib.
...
New capabilities: using vertex buffers, immediate vertex data, immediate indices.
2004-12-29 03:48:05 +00:00
Vladimir Dergachev
6a50fc43cb
Use R300_CMD_END3D for end_3d().
2004-12-27 23:30:39 +00:00
Adam Jackson
c6cca6a3b8
Fix read-from-uninitialized in s3vMakeCurrent()
2004-12-27 22:57:05 +00:00
Adam Jackson
29c88396db
Unused variable cleanup.
2004-12-27 22:08:34 +00:00
Adam Jackson
d9fcfa2797
Bug #1859 : Initialize 'size' before first use in intelTryReadPixels()
2004-12-27 21:52:17 +00:00
Adam Jackson
0983c9dd99
Build s3v and trident by default too.
...
Smoky the bear says: Only you can prevent bitrot.
2004-12-27 20:38:29 +00:00
Adam Jackson
c3eaa17b37
Get s3v building with a minimum of warnings.
2004-12-27 20:31:56 +00:00
Vladimir Dergachev
99edafd4e8
Implement rendering of (flat color) QUAD primitives as an experiment.
2004-12-27 17:18:48 +00:00
Ian Romanick
83fcf49647
Fixed two problems with the handling of GLX protocol replies. The logic
...
for determining when extra data needed to be read after a reply (to ensure
4-byte alignment) and the logic to determine whether or not to read reply
data after the SingleReply packet were both slightly wrong.
2004-12-27 08:29:54 +00:00
Vladimir Dergachev
3cbc2bd833
Expose primitive types being rendered, in preparation to implement fixed pipeline primitive drawing.
...
Note: these are only visible when export LIBGL_DEBUG=verbose is specified.
2004-12-26 21:42:14 +00:00
Vladimir Dergachev
1b2a655521
Update with most recent version.
2004-12-26 19:32:21 +00:00
Adam Jackson
46a35b2284
Get trident building and -Werror clean.
...
- Added Makefile
- Deleted references to old headers
- Added prototypes all over the place
- Lots of type updates (drmHandle -> drm_handle_t etc.)
- Added __driCreateNewScreen(), deleted __driCreateScreen()
- Fixed context creation to match other drivers
- Fixed various bitfield names
- Bumped driver date
Still nowhere close to usable, the DDX isn't DRI-aware and there's no DRM.
2004-12-24 03:04:14 +00:00
Felix Kuehling
1c86c7ad9c
Simplified and optimized _savage_texnorm_stage.
2004-12-23 20:26:59 +00:00
Keith Whitwell
3deaf21745
Remove the VIA_PERFORMANCE code. A step towards moving the driver
...
back to using the shared template files.
2004-12-23 18:26:40 +00:00
Keith Whitwell
9876730f7a
Chop out more dead code.
...
Get the drawXoff adjustment working a bit better.
Seems to pass the glean orthoPos tests.
2004-12-23 18:16:22 +00:00
Keith Whitwell
15da29b5e7
Fix merge error.
2004-12-22 19:31:10 +00:00
Keith Whitwell
7db50bb3a8
Remove dead code.
...
Fix 24/8 depth/stencil visuals.
2004-12-22 19:30:02 +00:00
Felix Kuehling
922bfd70ff
Enabled hardware rendering of 1D textures. No need for a software fallback.
2004-12-22 16:12:59 +00:00
Felix Kuehling
80dd3c7917
- Fake projective textures on a single texture unit. A fallback is only
...
needed if a second texture unit is enabled.
- Also worked around an application bug in Chromium B.S.U.: it sends 3D
texture coordinates while only a 2D texture is enabled. This used to
trigger a PTEX fallback. Now the 3rd coordinate is just ignored.
- Fixed the _savage_texnorm_stage to never normalize homogenous texture
coordinates.
2004-12-22 00:21:32 +00:00
Keith Whitwell
8bdaa927eb
Remove debug code which referenced an old global variable.
2004-12-21 23:07:13 +00:00
Ian Romanick
990dec7ea0
Used GCC's __builtin_expect when available. Change the way code is
...
generated for commands that can use RenderLarge packets. Tweak the code for
__glXFlushRenderBuffer slightly.
2004-12-21 23:06:02 +00:00
Keith Whitwell
302c5694c6
Push a number of global variables into the viaContext struct.
...
Remove the bogus 'current_vmesa' pointer.
2004-12-21 22:42:00 +00:00
Ian Romanick
1d27084043
Added some comments and fixed typeos. Slightly refactored the way
...
function parameters are iterated. There are no changes in the generated
code.
2004-12-21 21:26:36 +00:00
Daniel Borca
b756990b84
t' was not initialized (use
texture' instead?)
2004-12-21 15:45:41 +00:00
Brian Paul
3ec0631e95
fix bug in _mesa_IsTexture()
2004-12-21 15:13:41 +00:00
Keith Whitwell
50694eeff9
Note that state is dirty on contended lock. Allows two applications
...
to run together correctly, though scheduling between them still isn't
great.
2004-12-21 13:23:10 +00:00
Keith Whitwell
3955313e7c
Add missing swap-control calculations.
...
Remove debug printf.
2004-12-21 12:35:04 +00:00
Keith Whitwell
314f8e4d9d
Add vsync swapbuffers. This waits on the irq so gears run in this mode
...
will have a very low cpu utilization (and also a very low framerate).
Fix up the pageflipping code. This works now but is totally oblivious
to the X server (ie. it works but it's broken). Turned off by a #define.
2004-12-21 11:57:03 +00:00
Daniel Borca
91a04617c4
added GL_EXT_stencil_two_side (yes, it works)
2004-12-21 08:21:52 +00:00
Daniel Borca
d7b9d6046d
missing `or' in preprocessor conditional
2004-12-21 08:05:43 +00:00
Keith Whitwell
16db15718d
Add a -fullscreen option
2004-12-20 14:48:19 +00:00
Keith Whitwell
14bc684990
Remove #ifdef DEBUG's in code, but still allow compiler to remove debug
...
code if DEBUG not defined.
2004-12-20 12:52:21 +00:00
Daniel Borca
b51600716e
put back clipmask code; it proved to be a MinGW/gcc 3.3.x error in t_vb_cliptmp.h(47), where it would still send clipped vertices to the hw... oh, dear...
2004-12-20 08:24:10 +00:00
Daniel Borca
6bb1be010e
use float constants.
...
fixed a small debug error.
2004-12-20 08:20:39 +00:00
Daniel Borca
7799294459
removed ifdef'ed out code (to whom it may concern: it can be found in dri/tdfx driver)
2004-12-20 08:19:28 +00:00
Daniel Borca
16d4166d14
removed detritus (ncc).
2004-12-20 08:18:19 +00:00
Daniel Borca
7b50d773d3
comment reorg.
...
removed detritus (ncc).
2004-12-20 08:17:36 +00:00
Daniel Borca
ad149e3e65
made some functions static.
2004-12-20 08:16:24 +00:00
Daniel Borca
9e821269fc
comment reorg.
...
made some functions static.
hide vp behind an envvar.
removed unnecessary multitex constraint for napalm hw.
2004-12-20 08:15:50 +00:00
Daniel Borca
6a7b4690e3
allow greater swappendingcount for older hw (v1/v2)
2004-12-20 08:12:09 +00:00
Daniel Borca
00b7aba567
misc cleanup
2004-12-20 08:09:25 +00:00
Daniel Borca
0d7da6c3e0
allow ARB vp/fp query program errors
2004-12-20 08:08:15 +00:00
Daniel Borca
2982dce27e
really protect against npot compressed textures (logbase2 never returns -1).
2004-12-20 08:03:01 +00:00
Ian Romanick
0d84c68313
Use GLX protocol code generated by glX_proto_send.py.
2004-12-20 04:53:00 +00:00
Ian Romanick
46be433c47
No GLX protocol for GL_ATI_fragment_shader.
2004-12-20 04:47:46 +00:00
Vladimir Dergachev
55fb41ade8
Fix cut and paste error (reported by Jerome Glisse)
2004-12-19 15:39:40 +00:00
Dave Airlie
7f752fed99
Implement software ATI_fragment_shader
...
no error detection, slow, may not be 100% correct but a good start
2004-12-19 03:06:59 +00:00
Brian Paul
a803b0c891
Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().
2004-12-18 22:03:07 +00:00
Brian Paul
feac302567
added GL_ARB_pixel_buffer_object extension string
2004-12-18 16:19:08 +00:00
Brian Paul
2a5afe3ab8
Added PRINT instruction for GL_NV_fragment_program.
2004-12-18 16:18:00 +00:00
Thomas Hellström
6cec977773
Unichrome DRI driver:
...
Fix for proplem where polygons partly outside the drawing window would get
one vertex clamped to the opposite window side. This bug could also cause
a hardlock. (Bugzilla #2066 , Yann Vernier)
2004-12-18 12:16:12 +00:00
Felix Kuehling
3d04879801
Made debugging output controllable via environment variable
...
SAVAGE_DEBUG. Added fallback debugs. Added no_rast option to disable
hardware rasterization (everything as software fallback).
2004-12-17 15:55:17 +00:00
Brian Paul
538541e300
VMS update
2004-12-17 14:48:00 +00:00
Daniel Borca
cf95169542
fxRasterPrimitive wasn't always receiving the reduced primitive
2004-12-17 10:40:32 +00:00
Daniel Borca
02978f1092
fxRasterPrimitive wasn't always receiving the reduced primitive
2004-12-17 08:08:37 +00:00
Felix Kuehling
0d39c4ebc9
Added a TNL pipeline stage that normalizes texture coordinates as a
...
workaround for bad Savage hardware interpolation of big texture
coordinates.
2004-12-17 00:01:15 +00:00
Adam Jackson
c403bcb8a7
Import s3virge and trident drivers. Not functional yet; no Makefile, no DRI-aware DDX.
2004-12-16 19:26:23 +00:00
Brian Paul
8662c5d98f
fix typos in texcoord setup - fixes perspective correction bug
2004-12-16 17:33:36 +00:00
Vladimir Dergachev
7771c92d35
The types uint32_t and uint8_t are not used in Mesa tree.
...
Put a couple of defines to use GL counterparts.
2004-12-16 14:04:49 +00:00
Brian Paul
575700fbdc
Experimental PRINT instruction for NV_vertex_program.
...
Basically, this lets you put a "PRINT 'mesage', register;" statement in a
vertex program to aid in debugging.
2004-12-16 03:07:18 +00:00
Brian Paul
c75900e7a2
don't divide texcoords by q if using a fragment program
2004-12-16 02:14:19 +00:00
Adam Jackson
d16aa9859c
Also PUBLICize the config option table
2004-12-16 00:23:47 +00:00
Adam Jackson
3d7aec70c9
Mark __driCreateNewScreen PUBLIC
2004-12-15 23:26:49 +00:00
Adam Jackson
791ce02244
_glapi_* is effectively PUBLIC API for the DRI drivers.
2004-12-15 23:14:29 +00:00
Adam Jackson
4890f2605e
Mark the XF86DRI client-side extension API as PUBLIC.
2004-12-15 23:07:55 +00:00
Adam Jackson
2719b54f53
fxt1_decode_1() needs to be non-static for the tdfx and glide drivers.
2004-12-15 22:57:59 +00:00
Thomas Hellström
20456d6a3d
Unichrome DRI:
...
Updated the driver to the new VIA security mechanisms in DRM. All command
submissions now passes through DRM ioctls. If the DRM AGP ring-buffer is
not enabled, it will use a DRM mechanism for submitting commands to the
hardware via a PCI bus mechanism.
Removed all direct write accesses to the hardware. Among other things the
VQ was previously turned off for the PCI path, apparently for Tuxracer.
That seemed unneeded and was removed. No visible impact on Tuxracer.
Abstracted all buffer blit operations in via_ioctl.c. The blitter context
is now reprogrammed before each blitting operation.
Updated driver date and drm version requirement.
(Bugzilla Bug #1950 , Thomas Hellstrm)
2004-12-15 21:59:25 +00:00
Thomas Hellström
b4f58e99eb
Unichrome DRI:
...
Stop the driver from giving empty texture levels with erroneous HW addresses
to the hardware. These will get caught and rejected in the DRM command
verifier.
2004-12-15 21:27:49 +00:00
Thomas Hellström
de541439d3
Unichrome DRI:
...
Fixed an apparent race condition during locking and drawable info updating,
the result of which was the DRI client leaving traces on the screen rendering
where the drawable previously had been.
If the driver hangs X for a second or so and then restarts, this is probably
the place to look. (Thomas Hellstrm)
2004-12-15 21:17:51 +00:00
Thomas Hellström
a47c4c37ce
Unichrome DRI driver:
...
Check for texture allocation failure (Bugzilla #1633 , Bartlomiej Krol)
Reenabled AGP textures (Thomas Hellstrm)
2004-12-15 21:05:26 +00:00
Felix Kuehling
58f5b91b1b
Added configuration support to the Savage driver. Three options are
...
supported so far.
2004-12-15 17:45:23 +00:00
Adam Jackson
489ccef398
Fix up glx/x11 to work when built with -fvisibility=hidden.
2004-12-15 17:18:06 +00:00
Felix Kuehling
5566127701
Fixed GL_CLAM_TO_EDGE. It's not supported in hardware. Use GL_CLAMP
...
instead of GL_REPEAT.
2004-12-15 16:59:58 +00:00
Felix Kuehling
e9fbc23024
Fixed initialization of some stencil-related S4 registers, which was
...
misplaced in savageDDInitState_s3d, where was overwriting completely
unrelated S3D registers with garbage.
2004-12-15 16:54:19 +00:00
Felix Kuehling
91fd299b6b
Moved some code from savageCreateContext to savageInitDriver, where it
...
belongs. Removed some obviously useless code. Fixed computation of
MaxTextureLevels.
2004-12-15 16:50:57 +00:00
Felix Kuehling
9fb668c576
Fixed some missing uint8_t -> u_int8_t.
2004-12-15 15:44:28 +00:00
Keith Whitwell
cc488b03a3
Add _mesa_delete_texture_object() call to viaDeleteTexture
...
[Freedesktop BUG 2080]
2004-12-15 13:59:47 +00:00
Keith Whitwell
ae68c3212b
Add some catchall commands to realclean target to remove built files
...
which are forgotten about when the configs/current symlink changes.
2004-12-15 11:03:41 +00:00
Daniel Borca
3f1205819a
updated makefiles for gcc 3.4.3 and bnu 2.15
2004-12-15 08:00:43 +00:00
Daniel Borca
65dfab66e5
minor info update
2004-12-15 07:56:49 +00:00
Daniel Borca
8b563fd4c5
added DMesaProc type to prevent gcc 3.4.3 warnings
2004-12-15 07:55:38 +00:00
Daniel Borca
654dccfd85
added DMesaProc type to prevent gcc 3.4.3 warnings.
...
sw tc is disabled by default
2004-12-15 07:54:20 +00:00
Daniel Borca
ea38858127
protected elfish code against non-elf compilers
2004-12-15 07:52:35 +00:00
Brian Paul
3df033a93b
fixes for fragment programs
2004-12-15 01:13:39 +00:00
Brian Paul
69a5896238
init span.w, dwdx, dwdy in case we're running a fragment program
2004-12-15 01:11:36 +00:00
Brian Paul
55481b3a29
tweaks to the LIT instructions
2004-12-15 01:07:52 +00:00
Brian Paul
244adeb639
s/DP3/DP3_SAT/ to prevent negative values
2004-12-15 00:54:17 +00:00
Alan Hourihane
968cbf94d9
uint*t -> u_int*t
2004-12-14 22:37:46 +00:00
Alan Hourihane
fc84bec654
fix warning
2004-12-14 10:59:37 +00:00
Alan Hourihane
38b317d508
uint*t -> u_int*t changes
2004-12-14 09:11:52 +00:00
Ian Romanick
9fb024ba97
Added many (hopefully all) missing 'output="true"' attributes. Added
...
missing enum information for GL_EXT_cull_vertex and
GL_SGIS_texture_color_mask. Added GL_SUN_mesh_array. Corrected the
spelling of the "length" parameter to GetActiveUniformARB.
2004-12-13 23:58:09 +00:00
Ian Romanick
dea44ca491
Trivial shell script to search the API definition file and print out the
...
next numerically available API entry-point offset.
2004-12-13 21:26:50 +00:00
Daniel Borca
8c0b1d8826
disabled ClipMask usage in vb emitter (clipping bugs?)
2004-12-13 08:44:46 +00:00
Brian Paul
8402149766
removed unused visInfo var
2004-12-12 22:24:09 +00:00
Brian Paul
af808afbe7
fix recursion problem introduced on Nov 27
2004-12-12 22:22:10 +00:00
Brian Paul
68d293b035
Added driver hooks for GetTexImage() and GetCompressedTexImage().
...
Added fallback _mesa_get_[compressed]_teximage() routines to texstore.c
2004-12-12 19:03:16 +00:00
Keith Whitwell
5aa1a111a4
Fix a couple of glitches
2004-12-10 17:18:00 +00:00
Daniel Borca
3cc28c96cd
allow GetTexImage with RGBA format and COLOR_INDEX internalformat
2004-12-10 07:36:35 +00:00
Brian Paul
7af80ca8c1
typo
2004-12-09 23:23:14 +00:00
Brian Paul
a8158599df
bring in 6.2.1 changes
2004-12-09 23:21:36 +00:00
Brian Paul
8597dd3e96
check if using a PBuffer in clip_for_xgetimage()
2004-12-09 16:23:03 +00:00
Keith Whitwell
da3e15c2fd
Get linux-solo dependencies building correctly,
...
Make sure symlinks are built in driver directories before running makedepend.
2004-12-09 08:42:19 +00:00
Daniel Borca
2fc3a958a4
make sure we're cleaning up everything
2004-12-09 07:44:37 +00:00
Daniel Borca
a280d3347a
simplistic ICD implementation for fx/Mesa
2004-12-09 07:43:59 +00:00
Dave Airlie
0e01b23798
back out Keiths last checkin - for Solo the include order is important
2004-12-09 00:25:06 +00:00
Dave Airlie
b2ad61fd40
fixup pci code for Jon's last checkin for changing page size
2004-12-09 00:18:59 +00:00
Roland Scheidegger
b31b7836d6
(Stephane Marchesin, me) add hyperz support to radeon and r200 drivers. Only fast z clear and z buffer compression are supported for now, hierarchical-z is not. Still problems with multiple apps and z/stencil readback, which is why hyperz is disabled per default. Also add the new point sprite packet drm 1.13 accepts to the sanity code.
2004-12-08 17:32:46 +00:00
Keith Whitwell
fc23672327
Improve the behaviour of the build system wrt depend files.
...
- Remove the -Y option for makedepend, so that the standard
directories are searched
- No longer pipe the multiple errors that the -Y option caused
into /dev/null -- we want to know about these failures.
- Fix up a few other misc makedepend failures.
2004-12-08 15:16:36 +00:00
Keith Whitwell
e5aa3dd29b
Demonstrate using a color matrix for yuv-to-rgb conversion at texture
...
upload time.
2004-12-08 14:56:40 +00:00
Alan Hourihane
c69d60fbe4
Use union type to avoid strict aliasing problems.
2004-12-08 14:26:48 +00:00
Alan Hourihane
c63f3cf85d
silence warnings
2004-12-08 14:00:46 +00:00
Alan Hourihane
8635615501
Check for some header defines before redefining functions. Silences warnings.
2004-12-08 12:59:15 +00:00
Alan Hourihane
03dc05a605
silence warning
2004-12-08 12:35:55 +00:00
Dave Airlie
23b033ad28
From: Stephane Marchesin <marchesin@icps.u-strasbg.fr>
...
Attached is a patch that adds pci init code for mesa solo on radeon. It's been
tested on an itanium 2 with a radeon 7000 and it works here.
The patch adds a new field in the miniglx.conf config file, to choose between
pci and agp.
2004-12-08 06:15:01 +00:00
Roland Scheidegger
e1b4fec71c
fix depth/stencil readback if coordinates are larger than 1023 ( https://bugs.freedesktop.org/show_bug.cgi?id=2010 ). Should now work up to 2047, which is the current limit for 3d rendering.
2004-12-08 03:07:34 +00:00
Daniel Borca
3b65cab455
fixed an include path
2004-12-07 15:57:33 +00:00
Daniel Borca
c049d4bc89
explicit cast in a few places
2004-12-06 08:11:14 +00:00
Daniel Borca
d033ce63da
disable junk for mingw
2004-12-06 08:10:33 +00:00
Daniel Borca
ac7091078f
small fix for debug paths
2004-12-06 08:10:01 +00:00
Daniel Borca
fa9ab2d052
sync with glut/glx
2004-12-06 08:09:22 +00:00
Brian Paul
ddfd2067ae
report bugs at freedesktop.org
2004-12-05 18:03:21 +00:00
Brian Paul
86cbfc2fac
direct bug reports to freedesktop.org
2004-12-05 18:02:01 +00:00
Ian Romanick
74764061fa
Move common GLX code to glX_XML.py. This will make adding glX_proto_recv.py
...
easier later on.
2004-12-03 20:31:59 +00:00
Ian Romanick
47719fda0c
Fix a minor bug in glXEnumFunction::PrintUsingTable. Add some comments.
...
Add the (currently unused) utility funciton glXFunction::opcode_real_value.
2004-12-03 20:24:50 +00:00
Brian Paul
cbc527cd17
mask color indexes against palette size, per the spec
2004-12-03 18:12:08 +00:00
Roland Scheidegger
0fdb7ef877
only enable GL_MESA_ycbcr_texture for real r200 chips, not the derivatives, since yuv textures do not work for some reason on the other chips.
2004-12-03 18:09:40 +00:00
Roland Scheidegger
de7b071b55
enable GL_EXT_stencil_wrap (patch from idr), including some hacks for original radeons which have some broken stencil ops.
2004-12-03 17:26:41 +00:00
Brian Paul
25b67e6404
Use the GL datatypes. Lots of assorted clean-ups.
2004-12-03 15:58:07 +00:00
Brian Paul
404055216d
silence warning
2004-12-03 15:39:58 +00:00
Brian Paul
2d846b712c
re-disable TRACE
2004-12-03 15:39:08 +00:00
Brian Paul
a760ccf6d8
silence a variety of warnings found with g++ 3.4.2
2004-12-03 15:24:34 +00:00
Alan Hourihane
025aa9efcd
silence warnings
2004-12-02 14:50:13 +00:00
Alan Hourihane
8694285053
reverse some debug that slipped through
2004-12-02 13:32:55 +00:00
Alan Hourihane
22ae633d1e
Fix some warnings
2004-12-02 13:29:40 +00:00
Ian Romanick
ba807fbe29
Updated the schema. Added comments explaining some of the non-obvious
...
attributes. Modified a couple handcode functions to use the count_scale
attribute instead.
2004-12-02 00:01:12 +00:00
Ian Romanick
00d153eb72
Corrected a problem with the sizes of the MAP[12]_* enums.
2004-12-01 23:53:43 +00:00
Ian Romanick
5ee2f9aed4
Added a couple missing always_array annotations and a couple trival
...
enum-only extensions.
2004-12-01 21:25:52 +00:00
Ian Romanick
596ccff699
Prevent possible divide-by-zero error.
2004-12-01 20:20:13 +00:00
Ian Romanick
77e297c368
Refactor ExtractDir and OpenDriver to be a bit more clear.
2004-12-01 09:41:14 +00:00
Ian Romanick
9bba1cfc39
Use indirect_size.c and indirect_size.h generated by using
...
src/mesa/glapi/glX_proto_send.py with the '-m size_c' and '-m size_h'
options.
2004-12-01 09:11:04 +00:00
Ian Romanick
b53df18624
Slightly tweak the format of the size prototypes.
2004-12-01 09:06:34 +00:00
Ian Romanick
548435215d
Use the indirect_init.c generate by using src/mesa/glapi/glX_proto_send.py
...
with the '-m init_c' option.
2004-12-01 08:49:41 +00:00
Ian Romanick
4f4854a4af
Make the transition to script-genereated GLX code easier.
...
Convert GL 1.4 function names to EXT_blend_func_separate names.
2004-12-01 08:47:35 +00:00
Ian Romanick
529381ff75
Make the transition to script-genereated GLX code easier.
...
Convert GL 1.4 / ARB_point_parameter function names to EXT_point_parameter /
NV_point_sprite names.
2004-12-01 08:42:31 +00:00
Ian Romanick
e9789cf071
Python script to generate various bits of client-side GLX protocol code.
2004-12-01 08:35:37 +00:00
Ian Romanick
6b89a8363b
Make the transition to script-genereated GLX code easier.
...
Move "handcoded" ARB_window_pos / MESA_window_pos functions to their own
file. Modify the ARB_window_pos functions to use the MESA_window_pos names.
2004-12-01 08:31:15 +00:00
Ian Romanick
bb427b10b1
Make the transition to script-genereated GLX code easier.
...
Move "handcoded" ARB_transpose_matrix functions to their own file. From
here on out, such handcoded functions should go in a file named
indirect_FOO.c, where "FOO" is some logical name for the functionality
(e.g., part of the extension name, etc.).
2004-12-01 08:22:44 +00:00
Ian Romanick
c8c24d049d
Make the transition to script-genereated GLX code easier.
...
Move EXT_vertex_array wrapper functions from indirect_init.c to vertarr.c.
Fix problems with EXT_multi_draw_arrays function names.
2004-12-01 08:15:01 +00:00
Ian Romanick
345ed3ac8c
Make the transition to script-genereated GLX code easier.
...
Eliminate the need for indirect_wrap.h and NEED_GL_FUNCS_WRAPPED.
Basically, this means prepending __indirect_ to all the definitions and
calls of GL functions that don't already have it.
2004-12-01 08:02:50 +00:00
Ian Romanick
249a5552f1
Make the transition to script-genereated GLX code easier.
...
Convert GL_ARB_texture_compression related functions to use the extension
version of the names instead of the GL 1.3 versions.
2004-12-01 07:34:25 +00:00
Ian Romanick
4f0a75e724
Added the ability to get the size of a parameter as a string. Changed the
...
meaning of "variable length array" to include variables that are "counted"
instead of just ones that use an enum to map to a count. Added glParameter
to the glItemFactory.
2004-12-01 00:29:48 +00:00
Ian Romanick
9001d67309
Added enums for GL_OES_read_format.
2004-12-01 00:25:46 +00:00
Ian Romanick
fc43857cc9
Add trivial support ARB_texture_rectangle and OES_read_format.
2004-12-01 00:20:22 +00:00
Ian Romanick
05f4a2b92d
Missed GL_OES_read_format_bit in last commit.
2004-12-01 00:18:01 +00:00
Ian Romanick
f1f18cd1b8
Since we know the problem with HP_occlusion_test is / was on the server-side,
...
re-enable the extension on the client-side.
2004-11-30 23:29:51 +00:00
Ian Romanick
6106502fdf
PrioritizeTextures, GetClipPlane, and WindowPos3fMESA don't need to be
...
handcoded, but Enable and Disable do. Corrected some minor problems in the
PixelMap functions and some ARB_vertex_program functions. Added size data
for the enums that can be passed to the Map[12][fd] functions. Added the
enums for EXT_pixel_buffer_objects.
2004-11-30 23:27:33 +00:00
Keith Whitwell
4f144b6087
EXT_422_pixels test
2004-11-30 19:15:06 +00:00
Brian Paul
bf4c23d00f
no need to include stddef.h anymore
2004-11-29 17:31:03 +00:00
Brian Paul
dc991a2085
silence a warning
2004-11-29 17:30:21 +00:00
Brian Paul
55656a53d4
added __glXFindDRIScreen to glXGetProcAddress (bug 1068879)
2004-11-29 17:26:19 +00:00
Brian Paul
0d5e6ccfd6
fixed OSF/1 shared lib problem (bug 1065260)
2004-11-29 17:23:12 +00:00
Brian Paul
e25c7c2ad5
update from Jouk
2004-11-29 14:41:46 +00:00
Brian Paul
9cf65c5a5b
fix missing width/height error
2004-11-28 18:07:33 +00:00
Brian Paul
65a66f5bc3
Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().
...
Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA()
if necessary.
Cleaned up code related to GLframebuffer width/height initialization.
Set initial viewport/scissor params in _mesa_make_current2(), instead of
in the drivers' MakeCurrent functions.
2004-11-27 22:47:59 +00:00
Brian Paul
118a8bad73
new comments and assertions
2004-11-27 22:44:35 +00:00
Brian Paul
29926a11b1
Remove the redundant width, height fields in xmesa_buffer struct. Just use
...
the values in the contained GLframebuffer.
Removed some other unneeded code.
2004-11-27 21:20:37 +00:00
Brian Paul
b371e50d6d
remove _glapi_add_entrypoint() calls, they're already in context.c
2004-11-27 20:21:25 +00:00
Brian Paul
de43484c73
add a few functions in add_newer_entrypoints()
2004-11-27 20:14:03 +00:00
Brian Paul
b5b8d22c4e
Change the dispatch offsets for the VertexAttrib*NV functions so they don't
...
alias with the corresponding ARB functions.
GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias
with conventional vertex attributes, as GL_NV_vertex_program does.
So, the ARB and NV version of VertexAttrib need to be distinct.
2004-11-27 20:07:08 +00:00
Brian Paul
0699b0bb17
silence warnings
2004-11-27 19:57:46 +00:00
Brian Paul
6bca16b877
misc updates
2004-11-27 19:42:16 +00:00
Brian Paul
91d09a9ffa
Set symbol visibility to 'default', if supported by gcc.
2004-11-27 17:32:03 +00:00
Brian Paul
819b519534
use new PUBLIC macro for symbol export
2004-11-27 17:30:41 +00:00
Brian Paul
3903c1f2bc
don't need glut_fbc.c
2004-11-27 16:57:06 +00:00
Brian Paul
1d97c277e0
new GetOverlayInfo() function to reduce code and silence warnings
2004-11-27 16:49:52 +00:00
Brian Paul
4d880987d2
Have OSMesaGetProcAddress() return new OSMESAproc typedef.
2004-11-27 16:24:39 +00:00
Brian Paul
21f6978c53
clean up code related to dispatch table initialization
2004-11-27 05:05:32 +00:00
Brian Paul
13435525c4
clean up 'depend' commands
2004-11-27 04:58:39 +00:00
Brian Paul
2dd5b9edaa
typedef GLUTproc, return it from glutGetProcAddress()
2004-11-27 04:54:48 +00:00
Brian Paul
59fcd54f29
remove -Wmissing-prototypes from g++ flags, per gcc 3.4
2004-11-27 04:50:34 +00:00
Brian Paul
11a0a99d1b
use @ to silence some unneeded output
2004-11-27 04:37:25 +00:00
Brian Paul
209bd3a5b4
make get_static_proc_address() return a _glapi_proc
2004-11-27 04:02:32 +00:00
Brian Paul
7ee79c80ea
use _glapi_proc
2004-11-27 03:51:25 +00:00
Brian Paul
767e15a78a
Use new _glapi_proc typedef instead of void * for function pointers.
...
Misc clean-ups in glapi.c
2004-11-27 03:51:11 +00:00
Brian Paul
1136412013
fix typo, update version/date
2004-11-27 03:47:14 +00:00
Brian Paul
911a8bc62c
remove the GLAPI/GLAPIENTRY defines - they're already in gl.h
2004-11-27 03:29:39 +00:00
Brian Paul
39c86eac9b
removed a bunch of #define cruft, in case anyone still uses this code
2004-11-27 03:21:43 +00:00
Brian Paul
568f7578d3
Removed GLCALLBACK stuff - apparently never used anywhere.
...
Removed GLWINAPI stuff - only used (unnecessarily?) in enums.c
2004-11-27 03:14:57 +00:00
Brian Paul
d2c1027d40
added X11 and OSMESA source to ALL_SOURCES, updated etags command
2004-11-26 16:23:22 +00:00
Brian Paul
4fe34f340c
(GLint*) casts in glGetIntegerv calls
2004-11-26 13:43:17 +00:00
Brian Paul
59651a076d
update some type names
2004-11-26 13:34:45 +00:00
Brian Paul
c5f9aa7750
Use a generic function typedef instead of void * to avoid gcc 3.4 warnings.
2004-11-25 23:26:16 +00:00
Brian Paul
be2de8b299
Use __GLXextFuncPtr type instead of void * for generic functions to
...
avoid gcc 3.4 compiler warnings.
Remove the unused/obsolete GLX_render_texture stuff.
2004-11-25 23:25:33 +00:00
Brian Paul
4dafbc3dc7
Some new comments, clean-up formatting, etc.
2004-11-25 23:23:40 +00:00
Brian Paul
936028f8b0
Started some assorted clean-ups in #defines, typedefs, etc.
...
Next: move all the Windows/WGL stuff into the drivers/windows/ directory.
2004-11-25 23:22:56 +00:00
Brian Paul
b653aaede5
minor APIENTRY clean-ups
2004-11-25 23:20:07 +00:00
Keith Whitwell
7a293a9962
Update expected DRM version to 2.0.0
2004-11-25 14:05:05 +00:00
Ian Romanick
6dbb8ead0f
Added support for several additional enum-only extensions:
...
ARB_texture_rectangle, EXT_texture_env_dot3, EXT_texture_mirror_clamp,
ATI_texture_mirror_once, IBM_texture_mirrored_repeat,
NV_packed_depth_stencil, and NV_texture_rectangle.
2004-11-24 18:55:45 +00:00
Ian Romanick
e0a1cd3112
Added information about numerous enums to aid the development of automatic
...
code generation for GLX protocol. This includes adding support for several
additional enum-only extensions: EXT_filter_anisotropic, NV_expand_normal
NV_fog_distance, NV_texture_env_combine4, SGIS_generate_mipmap,
SGIX_clipmap, SGIX_depth_texture, SGIX_fog_offset, SGIX_shadow,
SGIX_shadow_ambient, SGIX_texture_coordinate_clamp, SGIX_texture_lod_bias,
and SGIX_texture_scale_bias.
2004-11-24 18:13:43 +00:00
Brian Paul
6b6c96bdeb
update _mesa_store_teximageXd() comments and minor code clean-up
2004-11-23 23:29:42 +00:00
Roland Scheidegger
ba62741261
revert enabling of hw quads for swtcl. It lead to problems with quad_strips, since they'll get reduced to quads sometimes if hw quads are enabled. But this needs more thought, since it looks like clipped primitives will always be emitted as polys, so the reduced primitives for triangles, quads, quads_strips, polys all need to be the same, otherwise get lockups with for instance the olympic test. Render templates would probably need to be changed for this to work.
2004-11-23 18:49:18 +00:00
Ian Romanick
180b0db344
Set the "ignore" flag for any functions that the open-source libGL doesn't
...
already support GLX protocol for.
2004-11-23 00:19:51 +00:00
Brian Paul
a789252feb
Don't allow queries/etc of buffer object 0 - it's invisible to users.
...
Misc clean-ups.
2004-11-22 20:01:25 +00:00
Brian Paul
ebe8d3152d
added GL_RED/GREEN/BLUE to is_color_format()
2004-11-22 19:58:59 +00:00
Brian Paul
d0a82a652d
silence warning, minor clean-up
2004-11-22 19:39:16 +00:00
Brian Paul
c247c7f66f
applied SPARC patch (freedesktop bug 1898)
2004-11-22 19:27:40 +00:00
Brian Paul
263317d00a
include <X11/Xthreads.h> instead of "Xthreads.h"
2004-11-22 19:11:01 +00:00
Brian Paul
65b79057b9
misc updates
2004-11-22 17:49:15 +00:00
Daniel Borca
f76be3d6f2
handle ENABLE_BIT for EXT_stencil_two_side
2004-11-22 08:46:53 +00:00
Brian Paul
4b4e7a982a
fix APP_LIB_DEPS (bug 1065260)
2004-11-15 16:54:14 +00:00
Adam Jackson
ad919c30df
Sync with Xorg head: mingw build fixes from Alexander Gottwald.
2004-11-15 15:31:32 +00:00
Daniel Borca
c0be56e5e8
moved windoze specific code outside drivers/glide/
2004-11-15 10:54:57 +00:00
Daniel Borca
4ffc5fa7a5
work around a bug in gcc 3.3.3 (which duplicates ASM block)
2004-11-15 08:06:55 +00:00
Daniel Borca
fdd74136b3
fix _mesa_image_address2d invocation
2004-11-15 08:05:59 +00:00
Daniel Borca
37918cf3d9
use float constants
2004-11-15 08:04:33 +00:00
Daniel Borca
fd9b30750a
use parentheses to avoid warning
2004-11-15 08:03:22 +00:00
Daniel Borca
16e6f05772
the win32 interface will be moving under windows/
2004-11-15 08:02:24 +00:00
Daniel Borca
05cb9468f3
emphasize on the contents of Glide SDK
2004-11-15 08:01:20 +00:00
Roland Scheidegger
e6cd5d675f
enable hw quad primitive for swtcl
2004-11-12 18:34:35 +00:00
Roland Scheidegger
ce055c26f0
add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver)
2004-11-12 18:29:51 +00:00
Roland Scheidegger
8e39265752
(from r200 driver) If an application cleared before any state had been emitted, that clear would
...
happen before any state had been set, causing a hang later on. Fix this by
calling radeonFlush instead of FIREVERTICES (which checks if any state has been
emitted but not flushed, before calling Flush) in radeonClear. While here, add
some more debugging info which was useful, and remove an unnecessary
save/restore in BackUpAndEmit.
2004-11-12 18:27:14 +00:00
Roland Scheidegger
6cf002c0c2
fix quads to use GL_QUADS instead of GL_TRIANGLES as primitive
2004-11-12 18:00:44 +00:00
Daniel Borca
8d88f826b9
small note regarding SSE under pure DOS
2004-11-12 15:00:30 +00:00
Daniel Borca
0676fc357a
added a few sanity checks
...
made coding style a bit more consistent
2004-11-12 14:58:26 +00:00
Daniel Borca
885f10706a
added DD_TRI_TWOSTENCIL to ease EXT_stencil_two_side in device drivers
2004-11-12 10:23:10 +00:00
Daniel Borca
f37383c1c6
wip hack for EXT_stencil_two_side
2004-11-12 10:11:04 +00:00
Daniel Borca
79a98dea91
pop(stencil) for EXT_stencil_two_side
2004-11-12 09:56:33 +00:00
Adam Jackson
a2c2393d91
brown paper bag, r100 can't do hardware quads.
2004-11-12 04:20:15 +00:00
Adam Jackson
4d17d00bfc
make render_quads_verts call EMIT_PRIM with the arguments in the right order,
...
and enable hardware quads on r200 and radeon. samples/prim renders quads
correctly now.
2004-11-12 04:13:27 +00:00
Brian Paul
b271ce8eda
allow specifying image file on command line
2004-11-10 23:16:22 +00:00
Brian Paul
60909388ab
GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpacking
...
and ignored for 1D and 2D images.
Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function.
This change gets propogated to some other routines.
Also added new _mesa_image_address[123]d() convenience functions.
2004-11-10 15:46:52 +00:00
Brian Paul
f00d7edd74
added shaderobjects.c
2004-11-10 15:25:37 +00:00
Roland Scheidegger
de08b0d7ed
add some chip ids
2004-11-10 01:49:01 +00:00
Brian Paul
b12594d2a0
do clipping prior to XGetImage, just in case the image would extend beyond the screen's bounds
2004-11-09 01:20:57 +00:00
Brian Paul
2a10ad16a6
use the new _mesa_clip_readpixels() routine
2004-11-09 01:10:36 +00:00
Brian Paul
e677da9e54
added a comment and assertion in _mesa_clip_drawpixels() for PixelZoom
2004-11-09 01:08:04 +00:00
Brian Paul
c55c963f4c
Removed _swrast_clip_pixelrect(). Use _mesa_clip_drawpixels() instead.
2004-11-09 01:04:50 +00:00
Brian Paul
4084e3c215
added _mesa_clip_drawpixels() and _mesa_clip_readpixels()
2004-11-09 01:03:49 +00:00
Brian Paul
4f28c9c35a
don't use ctx->Pack, use the function argument
2004-11-09 00:55:13 +00:00
Brian Paul
83889ffd97
Remove need for defining _MSC_VER when building Mesa for windows with
...
a non MS C compiler (MinGW). (Gregor Anich)
2004-11-08 15:08:48 +00:00
Brian Paul
5849e3d353
shorter error messages when calling a GL function without a bound context (FDO bug 1775)
2004-11-05 18:32:02 +00:00
Ian Romanick
cb7f212f93
Add EXT_stencil_wrap test that doesn't depend on stencil read-back
...
functioning.
2004-11-04 22:32:41 +00:00
Adam Jackson
473fe6d6bf
constify a few arrays.
2004-11-03 18:55:31 +00:00
Adam Jackson
5dd18e95d9
static char * -> static char []
2004-11-03 18:55:20 +00:00
Roland Scheidegger
d294f79190
enable GL_EXT_fog_coord. Calculate fog factors and submit them instead of fog coords (it seems the chip cannot do fog factor computation when not using fragment depth as fog coord source). vtxfmt uses fallback for now (most code present but some magic would be needed if replaying vertices is necessary later on).
2004-11-03 17:29:39 +00:00
Ian Romanick
bdd53efe83
Added MMX optimized version of the RGB565 ReadRGBASpan routine.
2004-11-02 18:25:45 +00:00
Nicolai Haehnle
2302cc1a25
No visible changes, but commit the groundwork for further experiments:
...
- Install custom (though inactive) pipeline
- Track depth test and culling state in hardware registers
2004-11-02 13:06:45 +00:00
Nicolai Haehnle
b187341e63
Add culling registers, sync versions of r300_reg.h
2004-11-02 13:05:40 +00:00
Brian Paul
b17a1a1826
merge the AIX and AIX64 cases
2004-11-01 22:28:42 +00:00
Keith Whitwell
cc78e40172
Nicolai's sw-clipspan-fixes.patch
2004-11-01 20:27:43 +00:00
Daniel Borca
3d2b4bfa95
cleaned up the mess a bit
2004-11-01 09:06:17 +00:00
Daniel Borca
95e2a8099b
small aesthetic correction
2004-11-01 08:49:55 +00:00
Daniel Borca
e14119f143
updated "clean" target in makefiles
2004-11-01 08:40:03 +00:00
Daniel Borca
63a2f2a977
protected against old djgpp distros
2004-11-01 08:38:12 +00:00
Daniel Borca
3c17d73c87
fixed compilation error
2004-11-01 07:40:53 +00:00
Brian Paul
051cf9df6a
fix convolution regression from revision 1.48 to 1.49
2004-11-01 01:00:16 +00:00
Brian Paul
a6c21a2af1
don't advertise GL_ARB_vertex/fragment_shader until they're done
2004-10-31 18:55:00 +00:00
Brian Paul
a196565e04
added a cast to ADD_POINTERS macro
2004-10-31 18:54:10 +00:00
Brian Paul
aea02adc7b
remove PBO work from to-do list
2004-10-31 18:44:24 +00:00
Brian Paul
753476c162
finished up PBO support
2004-10-31 18:43:46 +00:00
Brian Paul
effb720882
indentation fix
2004-10-31 18:41:38 +00:00
Brian Paul
450e917c9d
Use the _mesa_scale_and_bias_rgba() function in the convolution functions.
...
Minor clean-ups.
2004-10-31 18:40:55 +00:00
Brian Paul
331cc1dcba
PBO support for gl[Get]PixelMap functions
2004-10-31 18:31:07 +00:00
Brian Paul
66f3231322
PBO support for glColorTable, glColorSubTable, glGetColorTable, etc.
2004-10-31 17:56:28 +00:00
Brian Paul
bd3b40ad75
PBO support for glConvolutionFilter1D/2D, glGetConvolutionFilter, etc.
2004-10-31 17:36:23 +00:00
Brian Paul
d56928f10d
updated for PBOs
2004-10-31 17:04:07 +00:00
Brian Paul
b6f97582dd
glPolygonStipple() and glGetPolygonStipple() updated for PBOs.
2004-10-31 16:52:48 +00:00
Brian Paul
1c86813922
PBO support for glGetCompressedTexImage().
2004-10-31 16:35:06 +00:00
Brian Paul
b46712ca9d
glGetTexImage() now works with PBOs.
2004-10-31 16:24:32 +00:00
Brian Paul
c0ebc4931a
Map/Unmap PBO as needed so that the texstore routines can work with
...
hardware-based PBOs in the future.
2004-10-31 16:18:07 +00:00
Brian Paul
ba164c4614
Removed _swrast_validate_pbo_access().
...
In x11 driver, map/unmap PBO as needed in DrawPixels functions.
2004-10-31 15:49:59 +00:00
Brian Paul
355467bed8
Allow the software fallback glDrawPixels, glReadPixels, glBitmap commands to
...
work with real, hardware-based PBOs in the future by mapping/unmapping the
PBO buffer as needed.
2004-10-31 15:39:04 +00:00
Brian Paul
c6136ea62c
unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap!
2004-10-31 15:27:12 +00:00
Brian Paul
7eab337d9c
use _mesa_unmap_buffer by default
2004-10-31 15:23:42 +00:00
Brian Paul
2daa4137b6
Remove redundant error checking.
...
Added _mesa_buffer_unmap().
Minor clean-ups.
2004-10-31 00:17:42 +00:00
Brian Paul
9ae96a5ce8
remove debug code
2004-10-29 19:31:52 +00:00
Brian Paul
7520e25995
Updated getprocaddress test to use gl_API.xml instead of old APIspec file.
2004-10-29 19:12:08 +00:00
Michal Krol
efb8b3e251
slang syntax conforming spec rev. 1.10.59
2004-10-29 17:09:40 +00:00
Daniel Borca
b0996b19f0
make sure we don't generate random alpha
2004-10-29 13:35:56 +00:00
Daniel Borca
03501e7a29
decoder "width" parameter represents "stride-in-pixels"
2004-10-29 13:25:44 +00:00
Brian Paul
7faf519233
VertexAttrib3svNV was incorrect
2004-10-29 04:00:50 +00:00
Adam Jackson
0b8acd90b3
libGL needs libXxf86vm.a.
2004-10-29 00:10:43 +00:00
Brian Paul
4e120c9718
obsolete
2004-10-28 22:18:52 +00:00
Brian Paul
98fa2bf364
minor clean-ups, found with pychecker
2004-10-28 21:11:02 +00:00
Brian Paul
fa557e904d
name parameter to glGetActiveAttribARB() should not be const.
...
Added shaderobjects.c to sources file.
2004-10-28 21:03:19 +00:00
Michal Krol
af7a807650
renumber ARB_shader_objects and ARB_vertex_shader offsets
...
to get BlendEquation have offset 710
fix param name lack with GetInfoLogARB
2004-10-28 11:14:02 +00:00
Eric Anholt
cc182213c8
Add FreeBSD DRI build targets. Doesn't build at the moment, due to the same
...
problems as Linux.
2004-10-28 00:19:21 +00:00
Eric Anholt
948f2720f7
Use the generic __amd64__, instead of __AMD64__ which has to be defined by hand.
2004-10-28 00:18:02 +00:00
Brian Paul
51c026b265
updated PLIB URL
2004-10-27 23:01:47 +00:00
Adam Jackson
3291de6d06
Bug #1713 : Some rare libGL's have __glXFindDRIScreen defined but do not
...
export it via glXGetProcAddress. These are not supported anymore, so print
an error message to that effect.
2004-10-27 17:50:09 +00:00
Michal Krol
b28031d57e
remove unused entries
2004-10-27 17:36:23 +00:00
Michal Krol
80d468c1c9
fill api entries for ARB_shader_objects and ARB_vertex_shader
2004-10-27 17:34:27 +00:00
Michal Krol
678ea6cd5c
add entries for extensions ARB_shader_objects, ARB_fragment_shader and
...
ARB_vertex_shader
2004-10-27 17:27:57 +00:00
Michal Krol
2f11cbd15b
add FEATURE flags for ARB_shader_objects, ARB_vertex_shader and
...
ARB_fragment_shader
2004-10-27 17:16:06 +00:00
Michal Krol
c1fe469870
by karoshi - ARB_shader_objects implementation
...
empty routines by now
2004-10-27 17:09:10 +00:00
Michal Krol
ed2c18c08c
by karoshi - header file for ARB_shader_objects implementation
2004-10-27 16:57:04 +00:00
Michal Krol
26bf36ce49
add support for ARB_shader_objects and ARB_vertex_shader
2004-10-27 16:46:26 +00:00
Michal Krol
beb9554273
add support for ARB_shader_objects and ARB_vertex_shader
2004-10-27 16:39:09 +00:00
Michal Krol
a97bc422d6
assign api offsets for ARB_shader_objects and ARB_vertex_shader
2004-10-27 16:37:24 +00:00
Michal Krol
71eb0a7fd6
regenerate with correct script
2004-10-27 15:40:46 +00:00
Michal Krol
b7293dc2b7
regenerate with correct script
2004-10-27 15:34:31 +00:00
Michal Krol
ec3ad66696
fix DrawBufferARB entry
2004-10-27 15:29:05 +00:00
Michal Krol
1c0f9d71bd
fix DrawBuffersARB entry
2004-10-27 15:27:08 +00:00
Michal Krol
455c8177ad
the file was empty!
2004-10-27 15:20:08 +00:00
Michal Krol
b15fd4ba76
by karoshi - add support for ARB_shader objects and ARB_vertex_shader
2004-10-27 15:06:18 +00:00
Ian Romanick
95ba352497
As per suggestions my Michel Daenzer, improve the fix for bugzilla #1513 .
2004-10-26 19:20:40 +00:00
Brian Paul
640492aec9
added an attention-getting comment for developers who get stopped in _mesa_test_os_sse_support() while debugging
2004-10-26 17:29:59 +00:00
Brian Paul
2083131643
added stereo option (Jacek Rosik)
2004-10-26 14:36:32 +00:00
Adam Jackson
1cda832fd9
remove a -Werror from testing.
2004-10-25 22:19:43 +00:00
Adam Jackson
61702d4afe
Add glx/x11 to the DRI configs, and change the Solo configs to build glx/mini.
2004-10-25 21:23:08 +00:00
Adam Jackson
312c68fab3
Add DRI_LIB_DEPS for the DRI drivers to link against. Remove expat from the
...
link list for libGL itself under DRI configurations, since the XML parsing
code is in the drivers themselves.
2004-10-25 21:20:29 +00:00
Adam Jackson
7badefa6c4
Bug #1679 : Link DRI drivers against DRI_LIB_DEPS, not GL_LIB_DEPS.
2004-10-25 21:18:52 +00:00
Adam Jackson
cb3610e37c
Import the GLX client side library, formerly from xc/lib/GL/glx. Build it
...
by adding 'glx/x11' to SRC_DIRS in your build config.
2004-10-25 21:09:16 +00:00
Adam Jackson
bcd8735546
Import sarea.h from Xorg, needed for client GLX code.
2004-10-25 20:52:11 +00:00
Nicolai Haehnle
5a9fd2afc6
Implement ColorMask
2004-10-24 06:17:20 +00:00
Nicolai Haehnle
d586540eaf
Hardware accelerated depth clear
2004-10-24 05:52:10 +00:00
Adam Jackson
94987beb2c
Bug #1682 : Mesa core code that gets linked into DRI drivers should never call
...
through the GL API directly, but should instead use the GL_CALL macro.
2004-10-24 02:05:40 +00:00
Brian Paul
07553c58fd
wrap angle value (Philipp Klaus Krause)
2004-10-23 18:55:48 +00:00
Brian Paul
e57b6d5a4f
addes osdemo32 target (J.P. Delport)
2004-10-23 16:58:32 +00:00
Brian Paul
0aa0343fb0
minor fixes from J.P. Delport
2004-10-23 16:57:44 +00:00
Ian Romanick
74b0080086
Big-endian fixes for R200 sw TCL path.
2004-10-23 00:42:17 +00:00
Michal Krol
cb499595aa
- add decimal literal integer support
...
- fix bug with c-style comment closing - sequences
like /***/ were not correctly parsed
2004-10-22 12:42:37 +00:00
Michal Krol
c69ceaf8eb
forgot about revision increment
2004-10-21 14:11:06 +00:00
Michal Krol
b80bc055bc
- use new program option values from arbprogram.syn
...
- remove redundant check of parsed program target
- remove redundant check of relative addressing range
- use faster grammar interface
2004-10-21 14:09:54 +00:00
Michal Krol
ed60e19d8a
remove redundant check of parsed program target
2004-10-21 14:06:18 +00:00
Michal Krol
718ba9773b
change program options numbering to accommodate future
...
options (up to 256)
2004-10-21 13:57:24 +00:00
Michal Krol
cbef98c2ea
add new grammar_check_fast entry for faster parsing
2004-10-20 15:19:58 +00:00
Michal Krol
904ef741de
- speed up syntax parsing - the parser is now 4 times faster
...
note: to use it you must use grammar_check_fast entry
- allow decimal format for literal integers in .syn files
- raise am error if syntax has duplicate or unreferenced
symbols
- do some little clean-up with linked-list stuff
- make macro APPEND_CHARACTER a function
- fix minor typos and bugs
2004-10-20 14:54:17 +00:00
Daniel Borca
a7855e835d
fixed compilation errors
2004-10-20 11:59:28 +00:00
Daniel Borca
05517d02be
fix compilation error in `convertPalette' (still have to fix the issue, though)
2004-10-19 06:35:01 +00:00
Ian Romanick
f404ff7b76
Small optimization for big-endian (e.g., PowerPC) systems.
2004-10-18 23:24:51 +00:00
Michal Krol
f459b9f9c0
conform to shader spec 1.10.59
2004-10-18 12:18:33 +00:00
Michal Krol
cfb62331bc
conform to language version 1.10 rev 59
...
resolve TODOs
2004-10-18 09:49:25 +00:00
Daniel Borca
a0720cf104
print an error message in convertPalette before dying.
...
this is NOT a fix, but it'll have to wait a little...
2004-10-18 08:17:17 +00:00
Daniel Borca
c99a99b3bc
small fix to match new _mesa_rescale_teximage2d
2004-10-18 08:07:26 +00:00
Daniel Borca
1cfe1e8925
changed _mesa_rescale_teximage2d to allow rescaling of padded images
2004-10-18 08:04:21 +00:00
Daniel Borca
8cd728f436
added dstRowStride to dxtCompressTexFuncExt;
...
good for subimages, padded images and such.
NB: intentionally, this is the last parameter, to avoid
breaking the current API! adding a new parameter
is not harmful, at worst it will be ignored, since all
platforms use a CDECL calling convention.
2004-10-18 07:54:09 +00:00
Daniel Borca
13ec04c480
use RowStride instead of Width in texel fetchers.
...
changed some pointers to be (char *) instead of (long)
2004-10-18 07:49:26 +00:00
Ian Romanick
b430a1ae22
Fix compile errors when DEBUG is defined.
2004-10-18 00:00:41 +00:00
Ian Romanick
48da4a4a86
Fix t_vertex byte-ordering issues for PowerPC. This was tested with gears
...
and tunnel (for fog).
2004-10-17 21:54:41 +00:00
Ian Romanick
40e852271b
Add ARGB modes to support big-endian systems.
2004-10-17 21:53:43 +00:00
Ian Romanick
add38812f0
Fix hangs on big-endian (e.g., PowerPC) hardware.
2004-10-17 21:29:58 +00:00
Nicolai Haehnle
ff42a00402
- FIX: flickering
...
- Scissor support works now
2004-10-17 20:26:06 +00:00
Brian Paul
158a251a6b
added initial support for -exports option, Linux/OpenBSD only for now
2004-10-16 15:10:45 +00:00
Brian Paul
901d9b9a92
GL_OES_read_format info
2004-10-16 15:04:43 +00:00
Brian Paul
c498742768
if CXX or CC env vars aren't set, use g++, gcc by default (Linux)
2004-10-16 15:02:16 +00:00
Ville Syrjala
3152b1586c
Removed two unnecessary variables.
2004-10-16 11:26:06 +00:00
Ville Syrjala
63e9a968ff
Fixed off by one errors in clipping.
2004-10-16 11:09:26 +00:00
Eric Anholt
b1ebd306bf
Add code to support projective texturing and fix mixed enabling of texture
...
coordinate generation. Original code by Roland Schiedegger, with changes by
myself. While here, ensure that the swtcl path does tnl_install_attrs enough
when fog/specular are being (en/dis)abled.
Notable effects:
- projtex test works with TCL and is closer with swtcl (Bugzilla #1461 )
- 8/9 squares work in texgenmix instead of 3.
- texcyl "reflect" mode works (GL_SPHERE_MAP is now a fallback -- unclear if the
hardware can actually support it).
- flickering in doom3 replaced by just plain darkness.
- blocktube fixed (Bugzilla #984 )
- fixes stex3d
2004-10-16 03:36:14 +00:00
Eric Anholt
a1af92877d
Always turn on the TAM_DEBUG3=0x6 workaround on real r200s. It appears that
...
the current cases for turning it on were insufficient (Bugzilla #1519 , 729, 814)
and it has no significant performance impact. Performance tested with quake3
in GL_LINEAR mode both with and without anisotropy, with the workaround always
on or always off.
2004-10-16 01:58:02 +00:00
Ian Romanick
33899b7c35
Add support for OES_read_format. As soon as glext.h is updated with the
...
enums for this extension, the changes to gl.h can be removed.
2004-10-16 01:16:54 +00:00
Brian Paul
83c74b7279
fix if/else bug in _mesa_ProgramEnvParameter4fARB (fdo bug 1645)
2004-10-16 00:29:03 +00:00
Ian Romanick
1aa37f97c4
Only build the MMX/SSE/SSE2 versions for ReadRGBASpan when the pixel format
...
matches what they optimized versions actually expect.
2004-10-16 00:03:27 +00:00
Ian Romanick
12b53f2079
Fixed a few places that should have been using GET_SRC_PTR.
2004-10-15 23:46:53 +00:00
Ian Romanick
ea6786b453
Convert MGA driver to use new spantmp2.h interface.
2004-10-15 23:00:52 +00:00
Nicolai Haehnle
5696710f96
Huge dumb drop. State:
...
- Color buffer clear is accelerated, but flickers (possibly caused by a
recent DDX or Mesa change or bad merge)
- Everything else uses software fallback rendering
- There should be no clipping-related artifacts with the
sw-clipspan-fixes.patch against Mesa (posted on dri-devel)
- Multiple clients should be rock solid with a DDX patch that is soon to
come (soon = within the next hour or so)
2004-10-15 20:52:47 +00:00
Ian Romanick
0648794518
Add support for optimized versions of the code underlying ReadPixels
...
(and DrawPixels). The R200, R128, and Unichrome drivers get support
in this commit. Other drivers would be easy enough to add for people
that have the cards.
The DRI (CVS) build will need to be updated to account for the new
source files.
2004-10-14 00:59:12 +00:00
Keith Whitwell
dc45ee7a4b
Add a license to this file. It was written on VA's watch, so they get
...
the honours.
2004-10-13 23:16:02 +00:00
Ian Romanick
07bd4c585c
Added some documentation that I managed to figure out through
...
experimentation.
2004-10-13 22:38:31 +00:00
Ian Romanick
82f2e80f14
Make the GL_RENDERER string include the actual chipset information
...
instead of always saying "CLE266".
2004-10-13 22:36:26 +00:00
Ian Romanick
447cdd536f
Initial support for PowerPC specific code in Mesa and DRI drivers. DRI
...
drivers built on PowerPC systems should now show things like "PowerPC" or
"PowerPC/Altivec" in the GL_RENDERER string.
The VMX moniker is used for Altivec/Velocity Engine/VMX SIMD additions. I
chose this not because I work for IBM but because it's a LOT shorter to
type. :)
2004-10-13 19:56:15 +00:00
Ian Romanick
b72ed81818
Refactor the code in driGetRendererString a bit to make it easier to
...
add support for features of non-x86 CPU types.
2004-10-13 19:23:26 +00:00
Brian Paul
f599716b93
updated fsv URL
2004-10-13 17:29:46 +00:00
Ian Romanick
81f67fc4e9
Eliminate the funky SSE exception test from DRI builds. It's not need
...
(see the comment in the code), and it's just annoying.
2004-10-13 17:29:33 +00:00
Brian Paul
612d5f6e84
initial 6.3 changes
2004-10-13 15:57:55 +00:00
Brian Paul
dfe508ca7a
Fix minor fog / fragment program state bug.
...
Don't add diffuse and specular colors when using fragment program.
2004-10-13 15:54:48 +00:00
Adam Jackson
886df0926f
Bug #1588 : abort if no palette format matches. (Egbert Eich, Stefan Dirsch)
2004-10-13 14:33:49 +00:00
Philippe Houdoin
f58c61ddb5
Let's build again after the support for GL_ARB_draw_buffers was added.
2004-10-13 01:23:32 +00:00
Philippe Houdoin
d334067193
Fix a potential memory leak.
2004-10-13 01:17:52 +00:00
Philippe Houdoin
fd7f62a508
Forgot a contributor.
...
Update build requirements since we can build with BeOS vanilla gcc *and*
more recent gcc 2.95.3 versions (recommended for best performance).
2004-10-13 00:35:55 +00:00
Philippe Houdoin
ac855a6688
Implement BGLView::CopyPixelsIn/Out().
...
BGLView::ErrorCallback() is now actually called on error!
Plus usual minor changes.
2004-10-13 00:29:21 +00:00
Daniel Borca
701c289ff3
support for external libraries
2004-10-12 07:33:03 +00:00
Daniel Borca
3c9faa448c
SWTC trick (disabled for now)
2004-10-12 07:32:11 +00:00
Daniel Borca
2bff8bd8de
SWTC trick, enabled new extensions
2004-10-12 07:31:26 +00:00
Daniel Borca
92e1d5fd34
SWTC trick
2004-10-12 06:44:34 +00:00
Daniel Borca
65a9ca3381
bump version numbers to their real values
2004-10-12 06:43:57 +00:00
Daniel Borca
f5e7629685
doc update
2004-10-12 06:43:00 +00:00
Daniel Borca
189f7e31d6
avoid the patch if Mesa_DXTn flag is set
2004-10-12 06:42:02 +00:00
Daniel Borca
76908ab9d4
add more mess to the dynamic linking system
2004-10-12 06:41:20 +00:00
Daniel Borca
3d322f6c5e
add newline to end of file
2004-10-12 06:37:18 +00:00
Felix Kuehling
def29a3f87
Fix strange white space that gcc didn't like.
2004-10-11 22:26:40 +00:00
Michal Krol
ab2c0bed5a
Prefix operator and constructor keywords with two consequtive underscores
...
( __ ). This will be more compatible with glslang spec.
2004-10-11 15:06:02 +00:00
Michal Krol
ad22ce8143
Enable draw_buffers only if GL_ARB_draw_buffers string is
...
present in GL_EXTENSIONS string.
Parse OPTION ARB_draw_buffers.
2004-10-11 08:13:25 +00:00
Eric Anholt
739823d250
This statechange is vtx state, not tcl.
2004-10-09 23:29:07 +00:00
Eric Anholt
57f1b25caf
Use the right FALLBACK macro for projtex so that projective textures actually
...
cause a fallback, and simplify the tmu handling a little.
2004-10-08 23:24:04 +00:00
Eric Anholt
ea6f4f6079
Add fallback debugging (R128_DEBUG=fall) output, and set DO_DEBUG=1 by default
...
so that we can use the env var to get output. Add a no_rast driconf option to
force software fallbacks.
2004-10-08 23:03:38 +00:00
Eric Anholt
b4d269f35f
Don't compile WriteMonoDepthSpan if HAVE_HW_DEPTH_SPANS is defined -- it won't
...
be used in that case, and it wanting WRITE_DEPTH was making r128 die on
the undefined symbol.
2004-10-08 22:21:09 +00:00
Eric Anholt
f6cdaa9c81
Add support for NV_blend_square, and print errors if an unsupported blend
...
function is used.
2004-10-08 21:37:08 +00:00
Ian Romanick
3eccddb746
Massively cleaned up the code that calculates front/back/depth buffer
...
pitch and size. Cut out a bunch of dead code.
This fixes bugzilla #1555 .
2004-10-08 01:15:52 +00:00
Ian Romanick
a2dc424acf
Reject unsupported texture formats passed to glCompressedTexImage?D. This
...
fixes Mesa bug #1028405 .
2004-10-08 01:03:10 +00:00
Ian Romanick
af0a4690db
Add simple test program for Mesa bug #1028405 .
2004-10-08 00:56:08 +00:00
Alex Deucher
cb1642a75c
Apply Eric's stencil wrap patch (Eric Anholt)
2004-10-08 00:31:51 +00:00
Eric Anholt
d09209f553
Add Roland Scheidegger's S3TC patch. This patch does not implement the
...
(patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module
providing functions to do so. Because it uses dlopen, it is only enabled if
USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far).
It adds support for S3TC to several DRI drivers, and adds a DRI config option to
force enabling S3TC even if the software compression/decompression is
unavailable. This may allow people to use apps that require S3TC even though
they don't have a license to implement the patented material themselves, if
those apps use precompressed textures.
Ideally we would get permission from the current holder of the patents to
implement the algorithm in Mesa, at which point the dlopen mess could go away.
Until then, this allows some to run applications they couldn't otherwise, and
hopefully will provide us with more push to get the final step of getting that
permission done.
2004-10-07 23:30:29 +00:00
Ian Romanick
554e5a2eaf
Prevent Y-offset from exceeding valid range in texture upload code. This
...
fixes bugzilla #960 .
2004-10-07 16:39:20 +00:00
Felix Kuehling
1695cfe991
Fix emitting fog without secondary color and vice-versa.
2004-10-07 10:07:35 +00:00
Karl Schultz
89353febc0
*** empty log message ***
2004-10-06 21:45:48 +00:00
Brian Paul
fb170c8bd7
more GL_ARB_draw_buffers updates from Michale Krol
2004-10-06 15:56:38 +00:00
Brian Paul
0b89f7a93a
fix GetVertexAttrib problem
2004-10-06 15:52:43 +00:00
Ian Romanick
be50caa52c
Convert tdfxDDInitExtensions to use driInitExtensions.
2004-10-06 02:02:53 +00:00
Daniel Borca
e9be96d39e
put Rush in the list of supported HW
2004-10-05 08:43:22 +00:00
Daniel Borca
0efa4a8f96
stencil wrap works, either HW or SW (Ian Romanick)
2004-10-05 08:42:10 +00:00
Daniel Borca
cb932046a8
enable 2_0 extensions
2004-10-05 08:39:32 +00:00
Ian Romanick
617add69ca
Use the driFillInModes utility function.
2004-10-04 22:58:39 +00:00
Ian Romanick
ee3b7e390a
Also export fbconfigs with 0/0 depth/stencil modes. This fixes "driver
...
claims not to support visual 0xXX" warnings in X.org 6.8.1.
2004-10-04 22:23:29 +00:00
Ian Romanick
b82333db3e
Add some Savage3D stencil documentation based on discussions during the
...
20-Sep-2004 #dri-devel meeting.
2004-10-04 17:17:49 +00:00
Brian Paul
ddfec59bcd
make clean should remove depend.bak too (Sérgio Moneiro Basto)
2004-10-04 14:47:48 +00:00
Brian Paul
be76b7fe1e
ARB_fp support for GL_ARB_draw_buffers (Karl Rasche)
2004-10-04 14:40:05 +00:00
Ian Romanick
00fb3a054a
Set MaxTextureImageUnits and MaxTextureCoordUnits to match MaxTextureUnits.
...
This fixes bugzilla #1511 .
2004-10-04 03:19:01 +00:00
Ian Romanick
5e243bd57e
The alpha post-scale and the RGB post-scale were mistakenly reversed.
2004-10-04 02:54:49 +00:00
Eric Anholt
e8250c6271
Remove empty r128_vb.h.
2004-10-03 18:09:57 +00:00
Brian Paul
58d84409a3
put glapi_x86.S into the x86/ directory
2004-10-02 22:48:59 +00:00
Brian Paul
788ff5b5c7
remove unused413 stuff, glDrawBuffersARB uses that slot now
2004-10-02 22:47:48 +00:00
Brian Paul
feac4f6ba5
GL_ARB_draw_buffers
2004-10-02 22:43:44 +00:00
Brian Paul
3298ec4670
fix _DrawDestMask[0][0] typos
2004-10-02 22:38:43 +00:00
Brian Paul
53f82c5aad
added support for GL_ARB_draw_buffers
2004-10-02 16:39:09 +00:00
Brian Paul
289ffee2a0
fix indentation
2004-10-02 15:56:50 +00:00
Brian Paul
cbef8c4776
fix a comment
2004-10-02 15:56:33 +00:00
Brian Paul
83fb8c34fb
bump version to 6.3
2004-10-02 15:43:26 +00:00
Brian Paul
9cef3efc29
initial stuff for 6.3
2004-10-02 15:43:14 +00:00
Brian Paul
7e73b1afa2
a few more updates for the 6.2 release
2004-10-02 15:26:25 +00:00
Brian Paul
9ca8392484
fix LoadProgramNV regression when I had fixed the RefCount bug
2004-10-02 15:16:59 +00:00
Brian Paul
07dead7a51
added PBO known issues
2004-10-02 14:59:29 +00:00
Brian Paul
bdd3c2e44e
set 6.2 release date
2004-10-02 14:56:17 +00:00
Eric Anholt
599ea624a3
If an application cleared before any state had been emitted, that clear would
...
happen before any state had been set, causing a hang later on. Fix this by
calling r200Flush instead of FIREVERTICES (which checks if any state has been
emitted but not flushed, before calling Flush) in r200Clear. While here, add
some more debugging info which was useful, and remove an unnecessary
save/restore in BackUpAndEmit.
2004-10-02 05:22:19 +00:00
Eric Anholt
e5856a2960
Convert Rage 128 over to t_vertex.c. While it's slightly slower (10% in ipers)
...
it's not that big of a deal in more normal apps, and axes a good bit of code.
And I assume that t_vertex will only get faster. Removes ~43k from compiled
binary.
Tested with: quake3, ut, ipers, texcyl, chromium, tuxracer, neverball (kinda)
2004-10-02 01:33:46 +00:00
Eric Anholt
fc552c530f
Add an option for vertices emitted to be swapped CPU_TO_LE32, to be used by the
...
r128 code.
2004-10-02 01:28:38 +00:00
Ian Romanick
5b73371e05
Cut out all of the old texture environment code and rewrote it from
...
scratch. There were just too many cut-and-paste errors in the code,
and it was too hard to follow.
This fixes Mesa bugzilla #1508 . #1509 is probably also fixed, but
I'd like to do some more testing before I close that particular bug.
Additionally, this cuts almost 4,600 lines of code from the driver.
2004-10-02 01:23:46 +00:00
Karl Schultz
7ff3c9e4fc
minor updates and improvements
2004-10-01 21:22:10 +00:00
Karl Schultz
4c2fbb0538
Add the glut project to the demos workspace.
2004-10-01 20:55:23 +00:00
Karl Schultz
0303409732
Remove glut project from the Mesa workspace. This allows users to build
...
this entire workspace by only unzipping MesaLib.zip. The project will
be moved to the demos workspace, which is contained in the MesaDemos zip
file.
2004-10-01 20:53:28 +00:00
Karl Schultz
786eef2b1e
Add HP shared lib configs.
2004-10-01 20:19:16 +00:00
Karl Schultz
ba52e79b4e
HP shared lib config
2004-10-01 20:18:42 +00:00
Ian Romanick
bf4b63f836
Replace the numerous switch-statements to derive GL_COMBINE post-scale
...
state with a function. This function sets the bits correctly. Did some
trivial refactoring on some of the GL_COMBINE code.
First pass at replacing classic texture environments with GL_COMBINE.
This is controlled by the EXPERIMENTAL_COMBINE_MODE define.
2004-10-01 18:32:25 +00:00
Karl Schultz
5e2e9ef45c
fix problems in previous version
2004-10-01 16:29:39 +00:00
Karl Schultz
a16bdb5fb7
Enable builds on AIX 64-bit
2004-10-01 13:33:26 +00:00
Dave Airlie
75672d2e94
Fix mesa solo with doublebuffered apps, the drawable index/stamp weren't
...
being updated properly..
2004-10-01 04:34:01 +00:00
Ian Romanick
75e2f0698e
Factored out code for setting texture coordinate wrap bits. Added support
...
for GL_ARB_texture_mirrored_repeat. Enabled GL_NV_blend_square. It has
always actually been supported. Removed redundant EXT versions of ARB
extension strings.
2004-09-30 21:18:23 +00:00
Brian Paul
ba467e86fe
set span.y prior to each span write in draw_depth_pixels, like Karl's other fix
2004-09-30 15:39:43 +00:00
Eric Anholt
6a2ca962db
Bugzilla #1058 : Fix some potential 64bit pointer issues by storing differences
...
between pointers in appropriate types.
Submitted by: Ronny V. Vindenes <s864@ii.uib.no >
2004-09-30 00:40:21 +00:00
Eric Anholt
7a086dc05e
OK, one more time. Simplify the state-backup system by just storing the full
...
state in a ready-to-emit cmdbuf, which avoids the issue Nicolai Haehnle reported
where the check() could return differently during backup-and-emit than it should
have if it were called at the right time. Move the lit emission before most of
the TCL state emission on r200, which fixes neverball issues.
Tested with: r100/r200 with neverball, tuxracer, chromium, quake3, ipers
2004-09-30 00:08:05 +00:00
Karl Schultz
fa569c0a73
Fix bug in glDrawPixels when writing color indexed images on color indexed
...
devices. In draw_index_pixels(), use the correct variables for the span Y
and span end values.
2004-09-28 18:53:44 +00:00