Thomas Hellström
814cae6a45
Update drm expected version.
2006-09-28 09:34:33 +00:00
Thomas Hellström
410673f64c
Driver date.
2006-09-28 09:18:45 +00:00
Keith Whitwell
a83a3cfa1c
remove duplicate
2006-09-27 20:23:34 +00:00
Keith Whitwell
da89238b13
pull npot mipmap test from trunk
2006-09-27 20:18:36 +00:00
Keith Whitwell
984387b89c
Fix mipmap posititioning for 2d ARB_npot textures.
...
Fix typo in 3D image layout for i915.
2006-09-27 19:01:12 +00:00
Thomas Hellström
93bc5e8402
Fix another single-drawable-multiple-contexts error, that shows up now that the
...
drm_lock_tranfer() function has been removed from drm.
The error can cause the wrong context number to be used in the lock, but
otherwise should've done no serious harm.
We can probably throw away the i915 lock_mutex now.
2006-09-27 17:17:35 +00:00
Thomas Hellström
43722cae42
Valgrind error fix.
2006-09-26 14:15:08 +00:00
Keith Whitwell
f397a2a1e5
Move get_dirty() call to after reserving space in the batchbuffer as
...
this may trigger a batchbuffer flush and raise new dirty state.
Add assert_not_dirty() callback required by recent changes.
2006-09-26 11:36:32 +00:00
Keith Whitwell
87a0312068
Add asserts to catch primitives being emitted with state still dirty,
...
or extended when there is no primitive to extend.
Turn lock/unlock macros into proper functions and add a debug flag to
print out their activity.
2006-09-26 10:44:52 +00:00
Keith Whitwell
ee525436cc
Move get_dirty() call to after reserving space in the batchbuffer as
...
this may trigger a batchbuffer flush and raise new dirty state.
2006-09-26 10:39:42 +00:00
Keith Whitwell
520ba25dc3
Ensure that we don't wrap batchbuffers right at the beginning of a
...
primitive, otherwise vertices can be emitted without the full-state
preamble. Fixes gears + texobj lockup.
2006-09-26 09:27:54 +00:00
Thomas Hellström
6f9dc91045
Small COW break on destruction optimization.
...
Fix a comment.
2006-09-26 09:25:47 +00:00
Thomas Hellström
d17637d47f
Fix up buffer object and region refcounting
...
Sinlence some compilation warnings.
2006-09-26 09:00:03 +00:00
Thomas Hellström
980a25cd92
Make regions screen-based instead of context based.
2006-09-25 18:22:21 +00:00
Keith Whitwell
607c474f2d
Import Brian's FBO bugfix from trunk.
2006-09-25 16:11:14 +00:00
Thomas Hellström
2f54146c1f
Add some more buffer usage refcounting.
...
Otherwise these texture buffers will disappear under us.
2006-09-22 18:09:46 +00:00
Keith Whitwell
72aeeef7c3
Remove redundant 3d-state validation prior to blit copypixels. These
...
were causing some issues.
2006-09-22 16:45:52 +00:00
Keith Whitwell
dadc8e2a50
Fix a longstanding memory leak - intelObj->mt refcount was not deleted
...
when the texture was deleted.
2006-09-22 16:33:10 +00:00
Keith Whitwell
02d401b475
Turn some printfs into DBG's.
...
Fix a little mess left by indent.
2006-09-22 16:32:24 +00:00
Keith Whitwell
9d695abcac
rationalize debugging flags
2006-09-22 16:05:09 +00:00
Keith Whitwell
e070007d16
Silence warning
2006-09-22 16:03:36 +00:00
Keith Whitwell
39c4c8d54b
intel_batch_ioctl() lost its return type somehow
2006-09-22 16:03:06 +00:00
Keith Whitwell
4fa3cf225f
Fix initialization of pfPitch - measured in pixels, not bytes.
2006-09-22 15:22:32 +00:00
Thomas Hellström
1c2c1c4560
Another obscure bug causing an infinite loop when multiple contexts are
...
bound to a drawable.
2006-09-22 14:52:31 +00:00
Keith Whitwell
e3904516bb
bring in recent texture swizzle changes from trunk
2006-09-22 14:18:56 +00:00
Keith Whitwell
ceb222798b
- Make point_smooth, polygon_smooth fallbacks per-primitive rather than total.
...
- Also - disable those fallbacks unless INTEL_STRICT_CONFORMANCE is set.
- Gate some FBO debugging on INTEL_DEBUG=fbo
2006-09-22 14:16:33 +00:00
Keith Whitwell
6abcf6a3d3
Fix bug detecting overlapping regions in texture copypixels.
...
Import code from trunk to allow blit copypixels when scissor is active.
2006-09-22 14:10:39 +00:00
Keith Whitwell
db0ed8942f
Check for FragmentProgram._Enabled rather than _Active. _Active is
...
set when a driver is using an internally generated fragment program to
emulate fixed function behaviour. For the software rasterizer, we're
better off using the fixed function code directly.
2006-09-22 11:43:19 +00:00
Keith Whitwell
bd9f38ccaa
Flush driver, not just tnl module.
2006-09-22 11:39:31 +00:00
Keith Whitwell
b15421c22b
resize buffers in MakeCurrent
2006-09-22 11:37:39 +00:00
Thomas Hellström
5db0e131ef
Fix intel texture image buffer leak.
2006-09-22 10:55:05 +00:00
Michel Dänzer
b249ff8a86
Fix INTEL_DEBUG=fall.
2006-09-20 16:07:39 +00:00
Michel Dänzer
9d6e0f5d64
Revert INTEL_FIREVERTICES to flush primitives instead of asserting none pending.
...
The assertion was triggered in some cases, e.g. by the xscreensaver hack
stonerview.
2006-09-20 15:29:36 +00:00
Thomas Hellström
4f8549634e
Fix a fencing bug.
2006-09-18 18:55:29 +00:00
Keith Whitwell
3345ab8ccf
fix bzflag crashes
2006-09-18 18:11:42 +00:00
Thomas Hellström
cd3c9febda
Check for NULL in intelSwapBuffers()
2006-09-18 14:18:14 +00:00
Thomas Hellström
8c58a32360
Fix fencing when submitting empty batchbuffers.
...
Add a proper buffer waitidle method.
2006-09-18 14:11:00 +00:00
Thomas Hellström
0d646ea3a8
Relax the requirement in pool_takedown in the intel batch buffer pool,
...
that all allocated buffes should've been handed back before releasing the
pool.
This is to account for the case where whe app calls DestroyScreen() without
first destroying all contexts.
2006-09-18 08:41:22 +00:00
Thomas Hellström
6a33e6d221
Wait for buffer idle unlocked before mapping in some cases.
...
Greatly improves responsiveness.
Add an MI_FLUSH after each batchbuffer and tell the kernel we're doing so with
the new DRM_I915_FENCE_FLAG_FLUSHED (Requires drm update).
This can be done on a per-batchbuffer basis.
The DRM handles all fence accounting and signals earlier fences that also needs
a flush.
2006-09-15 14:52:31 +00:00
Thomas Hellström
fc4bc6fc97
Adapt to updated libdrm.
2006-09-15 09:22:08 +00:00
Keith Whitwell
4239cfd534
Turn back on zcopy uploads - my timings were incorrect.
2006-09-14 14:48:34 +00:00
Keith Whitwell
b0902a4158
Silence debug, cope with calling intel_region_cow() with lock already held.
2006-09-14 14:48:09 +00:00
Keith Whitwell
269219dc05
Disable zero-copy texturing for now as it isn't such a win with the
...
newest memory manager code.
2006-09-14 12:11:46 +00:00
Thomas Hellström
5dbadd418c
Fix a FBO render offset bug.
...
The current code failed if the dri drawable was updated before the call to
intelFlush(), and typically rendered into an FBO using the back buffer
cliprects.
2006-09-13 15:10:09 +00:00
Keith Whitwell
71bce51324
update driver date and branch debug
2006-09-13 12:45:42 +00:00
Keith Whitwell
308d377ca8
Bring in writemask + TEX fix from trunk
2006-09-13 12:45:21 +00:00
Thomas Hellström
4f39d22c29
texmem_0_3_branch with adaptations to the drm-ttm-0-2 branch.
...
Indent the i915 driver directory.
2006-09-12 14:13:36 +00:00
Keith Whitwell
8dab7963b7
Add a demo illustrating various techniques for uploading dynamic (ie
...
streaming) texture images via PBO's. Two of these currently seem to
trigger a memory leak in the i915 driver, but at least one
(PBO_PINGPONG) illustrates the good speedups available with PBO's on
the i915 driver, particularly zero-copy uploads.
2006-08-30 20:41:18 +00:00
Keith Whitwell
ec30116c9f
Must lock hardware around call to intelEmitCopyBlit()
2006-08-30 20:18:33 +00:00
Keith Whitwell
5ac3ad7722
implement zero-copy uploads for glTexImage from suitable pixel buffer objects
2006-08-30 19:55:32 +00:00
Keith Whitwell
fe239744aa
Bring in improved version of the texdown demo from the original texmem branch
2006-08-30 09:15:40 +00:00
Keith Whitwell
137dcd4a46
remove orphan file
2006-08-29 12:11:22 +00:00
Keith Whitwell
0d7755fc73
remove i915_texprog.c as it is no longer needed
2006-08-29 11:58:23 +00:00
Keith Whitwell
c863e63549
remove hashing for bm buffers, use an opaque pointer instead of an integer
2006-08-29 11:45:13 +00:00
Keith Whitwell
62920e2ab2
revert last commit
2006-08-28 15:14:55 +00:00
Keith Whitwell
ce3885fc5f
dependent texture read demo
2006-08-28 15:11:10 +00:00
Keith Whitwell
bf0c1ca618
use mesa's texenvprogram in preference to i915 version. Enable tex_env_crossbar
2006-08-28 11:50:10 +00:00
Keith Whitwell
64bc9caa1c
various texture tweaks
2006-08-28 11:49:30 +00:00
Keith Whitwell
89a2ea6fd3
Add missing wait for busy buffers in bmMapBuffer()
2006-08-28 11:37:07 +00:00
Keith Whitwell
41123a85ec
Fixes for i945 texture layouts
2006-08-28 11:35:20 +00:00
Keith Whitwell
f10469abe8
add dependent texture read test
2006-08-17 13:25:14 +00:00
Keith Whitwell
4a74de797c
Make bgra format more explicit
2006-08-17 13:24:57 +00:00
Dave Airlie
c745394242
fix from i965 driver for compressed textures on texman
2006-08-16 03:33:00 +00:00
Keith Whitwell
f9f3de8c31
first pass at texture uploads from pbo's with the blitter
2006-08-03 15:41:10 +00:00
Keith Whitwell
3d0a073a71
trivial test for pbo-based texture uploads
2006-08-03 15:40:19 +00:00
Keith Whitwell
219ee91fa8
Get basic texturing working again on i945
2006-08-03 11:22:09 +00:00
Keith Whitwell
632eae3fec
Correct pitch / cpp calculation
2006-08-03 10:31:47 +00:00
Keith Whitwell
f378bcd8bf
drmOpen/Close once
2006-08-02 10:24:01 +00:00
Keith Whitwell
ded29089f3
new files from merge of texmem driver
2006-08-02 10:08:58 +00:00
Keith Whitwell
527c05eb2a
Pull the texmem i915 driver onto a new branch closer to the current trunk.
...
Compiles but otherwise untested.
2006-08-02 10:01:03 +00:00
Michal Krol
365582dd6f
Clean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.
2006-08-01 20:07:31 +00:00
Brian Paul
cc738e004f
casts and assertions
2006-08-01 20:03:29 +00:00
Brian Paul
f05e7eba95
code to draw engine block
2006-08-01 20:03:05 +00:00
Michal Krol
90d7b9c9eb
Move GL_MESA_shader_debug from glext.h to gl.h.
2006-08-01 16:06:08 +00:00
Brian Paul
e724324894
renderbuffer fixes (Sean D'Epagnier)
2006-08-01 14:33:05 +00:00
Claudio Ciccani
9a4f15ee59
Fixed warnings.
2006-08-01 14:32:02 +00:00
Aapo Tahkola
689df543db
fix #6991
2006-07-31 23:21:50 +00:00
Brian Paul
667dd3c3e8
added glut fbdev files
2006-07-31 14:25:53 +00:00
Brian Paul
fe3242f00a
GLUT on fbdev driver. Sean D'Epagnier
2006-07-31 14:24:21 +00:00
Michal Krol
e8947a5fa0
Add support for GL_MESA_shader_debug.
2006-07-30 15:29:11 +00:00
Michal Krol
91dbc04d5e
Commit enums for GL_MESA_shader_debug.spec.
2006-07-30 15:19:19 +00:00
Michal Krol
32bf274f78
Program to convert .syn file to .h headers.
2006-07-30 14:48:01 +00:00
Claudio Ciccani
fc434622b3
Clear window's event mask before enabling handled events.
2006-07-30 14:47:51 +00:00
Michal Krol
4cc87c7248
Add support for GL_MESA_shader_debug.
2006-07-30 14:45:25 +00:00
Michal Krol
c26999fd2c
Fix dependencies.
2006-07-30 14:33:53 +00:00
Michal Krol
d2ac9ab6ee
More text.
2006-07-30 14:28:38 +00:00
Michal Krol
39dd5196e6
Optimize shaders.
...
Use frame counter.
2006-07-29 09:42:03 +00:00
Eric Anholt
0e6ef1b1cd
Fix build failure in the savage driver.
2006-07-28 21:30:14 +00:00
Jerome Glisse
32d61d0616
r300_emit.h cleanup.
...
Remove unused macro
Replace LOCAL_VAR, PREFIX*
Indent code
Remove radeon redundant CP type 3 packet
2006-07-27 22:51:14 +00:00
Brian Paul
a7722cb794
load SLANG_FRAGMENT_FIXED_SECONDARYCOLOR
2006-07-21 20:52:43 +00:00
Brian Paul
c28399baa7
just reindent
2006-07-21 20:49:20 +00:00
Brian Paul
a97492f4df
added arrayobj.[ch] files
2006-07-21 19:56:52 +00:00
Brian Paul
9d9d7b1dee
check for non-nill pwc in WMesaMakeCurrent(), bug 7585
2006-07-21 19:52:59 +00:00
Brian Paul
122629f279
Some structure renaming. Prefix vertex/fragment-related structs with
...
"gl_" to match other structs.
2006-07-20 16:49:57 +00:00
Brian Paul
459db7bd72
bump MESA_TINY to 1
2006-07-20 04:34:36 +00:00
Brian Paul
a623e008c6
move/update comments
2006-07-20 04:24:42 +00:00
Brian Paul
2f12458fb3
use ctx->Light.ShadeModel instead of ctx->_TriangleCaps
2006-07-20 04:17:11 +00:00
Brian Paul
a1a6ac4af4
Instead of testing ctx->_TriangleCaps for flat/smooth shading, just use ctx->Light.ShadeModel
2006-07-20 04:16:26 +00:00
Brian Paul
4e2de9531e
remove unused NEED_TWO_SIDED_LIGHTING() macro
2006-07-20 03:56:16 +00:00
Brian Paul
ad15866ef0
For glGetTexImage(), move the _mesa_validate_pbo_access() error check into
...
_mesa_GetTexImage() so it's not needed in the fallback or driver functions.
2006-07-19 16:13:15 +00:00
Brian Paul
0749e2723b
Several loops over the map1/2 evaluator arrays were incorrect.
...
There's only 16 evaluator maps. Define new _TNL_NUM_EVAL constant for
those loops.
Also, fix priority of GL_NV_vertex_program generic maps - they override the
conventional maps.
See bug 7564.
2006-07-19 15:28:29 +00:00
Brian Paul
69ddf6cc41
more 6.5.1 additions
2006-07-19 15:09:42 +00:00
Brian Paul
114ecb9d67
indentation fix
2006-07-18 22:33:14 +00:00
Brian Paul
df926955be
add missing 'return' after a few _mesa_error() calls in _mesa_GetTexImage()
2006-07-18 22:27:02 +00:00
Brian Paul
813e56db51
Compute ctx->Color._LogicOpEnabled in one place instead of four places!
2006-07-18 19:15:40 +00:00
Tilman Sauerbeck
f81b1dbe37
fix a memleak (that code block has been commented out for years for unknown reasons)
2006-07-15 12:09:27 +00:00
Rune Petersen
416ac254c2
A small logic error.
...
We need to call do_swizzle() when the scaler _or_ vector unit have a
swizzle other 000/ZERO/111/ONE.
This ensures that the gloss on banners in ut2004 is not angel-dependent
(since when was banners glossy?).
2006-07-15 10:44:25 +00:00
Brian Paul
f4e46e1a46
define FLT_MAX_EXP to 128 if undefined
2006-07-13 20:21:44 +00:00
Ian Romanick
7ef4a07165
Move initialization of server_support from __glXProcessServerString to
...
__glXCalcualteUsableExtensions. By having both callers of
__glXProcessServerString initialize the bit-fields passed in, we guarantee
that the correct amount of data is initialized:
This fixes bugzilla #7353 .
2006-07-13 15:27:37 +00:00
Brian Paul
883f9891cb
LIB_DIR is now just 'lib' or 'lib64'
...
Replaced $(LIB_DIR) with $(TOP)/$(LIB_DIR), use LIB_DIR in install targets.
Patch by Hanno Böck.
2006-07-13 02:50:27 +00:00
Brian Paul
d9eff8ba19
download/install updates
2006-07-12 20:14:43 +00:00
Brian Paul
b8528ea55e
New config var DRI_DRIVER_SEARCH_DIR to specify where libGL should search
...
(at runtime) for the DRI drivers.
See bug 2372.
2006-07-12 19:40:59 +00:00
Tilman Sauerbeck
e5c28321b2
fix another memleak
2006-07-12 17:06:49 +00:00
Tilman Sauerbeck
e77875dcbe
fix a memleak
2006-07-12 16:49:07 +00:00
Brian Paul
59cfd3cd3f
destroy window upon exit, remove CVS log comment
2006-07-12 02:34:43 +00:00
Brian Paul
d8bb5ea967
call glutDestroyWindow() to allow checking for mem leaks upon exit
2006-07-12 02:32:21 +00:00
Brian Paul
c04bb519e1
free array objects properly (bug 7493)
2006-07-11 21:56:43 +00:00
Tilman Sauerbeck
c60bcc8966
free GL2Objects unconditionally
2006-07-11 20:13:28 +00:00
Tilman Sauerbeck
c0eb777cd8
free the ArrayObjects hash table
2006-07-11 19:36:27 +00:00
Tilman Sauerbeck
17b5063c6f
only access ss->BufferObjects if it's declared
2006-07-11 19:03:21 +00:00
Tilman Sauerbeck
aead688e7f
_mesa_destroy_context() frees radeon->glCtx so we must not access it afterwards
2006-07-11 18:35:24 +00:00
Thomas Hellström
bbe197ec1d
Revert the SiS and Unichrome DRM version check changes.
2006-07-11 14:56:20 +00:00
Thomas Hellström
85b4ae0654
The SiS and Unichrome drivers assume that the handle to the
...
AGP map is equivalent to the AGP physical address. Fix this.
2006-07-10 12:20:24 +00:00
Aapo Tahkola
b9920ba7b7
Fix #7195
2006-07-09 00:04:06 +00:00
Brian Paul
27908d2bcb
update comment, APP_LIB_DEPS
2006-07-07 14:32:47 +00:00
Brian Paul
04f43226a8
fixup OSMESA_LIBS and make clean target
2006-07-07 14:32:02 +00:00
Brian Paul
8c140c9c37
remove GLUT dependency
2006-07-07 14:31:28 +00:00
Brian Paul
3ae1905744
remove dependency on GLUT
2006-07-07 14:12:04 +00:00
Kristian Høgsberg
218ba1ff54
Don't include unused header files.
2006-07-06 07:28:25 +00:00
Aapo Tahkola
5906acad08
R300_RR_ROUTE_1 still needs to be initialized.
2006-07-05 13:28:01 +00:00
Brian Paul
1ff8daf21e
New animated engine demo.
2006-07-04 21:43:21 +00:00
Jerome Glisse
1ad914575a
Add R300_VAP_CNTL 0x2140 and cosmetic cleanup.
2006-07-04 20:50:49 +00:00
Brian Paul
525eb0b621
added linux-osmesa
2006-07-04 16:49:58 +00:00
Brian Paul
f385cf115a
simple libOSMesa.so-only config, no X
2006-07-04 16:49:41 +00:00
Brian Paul
c6e1784062
enable hw antialiasing (Martijn van Oosterhout)
2006-07-04 13:37:19 +00:00
Brian Paul
2922aa236f
fix linking bug (bug 7405)
2006-07-03 23:12:16 +00:00
Brian Paul
77afb43519
additional clipping/viewport fixes (Martijn van Oosterhout)
2006-07-03 23:08:33 +00:00
Roland Scheidegger
46c1419c93
some minor simplifications (same as in r300 driver) since mesa's internally used swizzle and writemask flags are identical to the bits used on the hardware, use a macro to error out if these assumptions are no longer true.
2006-07-03 22:14:54 +00:00
Roland Scheidegger
bf35d70635
check if radeon_drm.h from libdrm is new enough, otherwise print an error to make it easier to figure out why it won't compile...
2006-07-03 22:11:44 +00:00
Jerome Glisse
69f31f5475
Add copyright header and minor cleanup.
2006-07-03 21:35:07 +00:00
Brian Paul
bfb2729f9e
disable a new mem leak check until we're sure it's valid
2006-07-03 13:20:32 +00:00
Brian Paul
a6c72b67f6
fix clipping bug on context change (Martijn van Oosterhout)
2006-07-03 13:17:00 +00:00
Tilman Sauerbeck
527cd2544f
initialize offset to avoid bogus warnings from valgrind
2006-07-01 21:27:34 +00:00
Brian Paul
be9282bf0b
Vertex/fragment program patches (Rune Petersen)
2006-06-30 17:56:50 +00:00
Brian Paul
0cdf2d7413
clipping fixes (Martijn van Oosterhout)
2006-06-30 17:21:32 +00:00
Brian Paul
f63623779a
clean-ups
2006-06-30 16:55:39 +00:00
Brian Paul
2893072967
use _mesa_HashDeleteAll()
2006-06-30 15:58:53 +00:00
Brian Paul
66c9be06f9
remove occlude.c demo since GL_HP_occlusion_test no longer available
2006-06-30 15:57:05 +00:00
Brian Paul
c7e164f091
In free_shared_state(), use new _mesa_HashDeleteAll() function to delete
...
textures, display lists, programs, VBOs, etc. Less code and more efficient.
2006-06-30 15:44:30 +00:00
Brian Paul
d179e16501
Added _mesa_delete_list() to delete a display list, but don't remove from
...
hash table. Make _mesa_destroy_list() static.
2006-06-30 15:41:55 +00:00
Brian Paul
9f6798d6e1
Added _mesa_HashDeleteAll() to delete all entries in a hash table with a
...
callback function.
Added _mesa_HashWalk() to walk over all entries in a hash table with callback.
2006-06-30 15:39:23 +00:00
Jerome Glisse
7c583f5d11
Fix typo.
2006-06-29 20:01:35 +00:00
Tilman Sauerbeck
f7f5b2c415
destroy left-over VBOs on shutdown
2006-06-29 18:36:51 +00:00
Tilman Sauerbeck
ff3a5b1842
instead of messing with _TNL_LAST_GENERIC and _TNL_FIRST_GENERIC, use _TNL_NUM_GENERIC. this fixes an off-by-one error (we didn't handle the final attribute)
2006-06-29 16:48:45 +00:00
Tilman Sauerbeck
8ca6250d72
cleanup, avoid magic values
2006-06-29 16:47:09 +00:00
Tilman Sauerbeck
ff5b590382
added _TNL_NUM_GENERIC
2006-06-29 16:45:57 +00:00
Brian Paul
787f4965a2
only assert front/back pitch if double-buffered (bug 7663)
2006-06-29 15:44:13 +00:00
Brian Paul
b10ea9843b
added src/glx/x11/depend to DEPEND_FILES
2006-06-28 21:58:47 +00:00
Tilman Sauerbeck
6c33475424
propagate errors from parse_generic_attrib_num in parse_attrib_binding (-> don't segfault when you're trying to access invalid generic attributes
2006-06-28 16:26:20 +00:00
Brian Paul
7a7aa2aabb
Don't use nested struct definitions in tnl_clipspace_fastpath.
...
Make attr_type into a top-level type: tnl_attr_type
See bug 7340.
2006-06-27 20:11:00 +00:00
Ian Romanick
4063b1730d
Remove the extraneous GL_ prefix from the enums for GL_EXT_timer_query and
...
GL_EXT_framebuffer_blit. Enumerants in the XML schema get the GL_ prefix
added to them automatically. This resulted in things like
"GL_GL_TIME_ELAPSED_EXT" in enums.c.
2006-06-27 16:13:13 +00:00
Aapo Tahkola
291fd257eb
Fix stencil clears that have caused problems with redbook/stencil, tests/stencilwrap and ut2k4 adrenaline pills.
2006-06-27 01:46:11 +00:00
Aapo Tahkola
caf0176472
Fix generic vertex attribs (Rune Petersen)
2006-06-27 01:26:47 +00:00
Brian Paul
4e0617849c
use trackball code for mouse rotation
2006-06-26 23:00:15 +00:00
Brian Paul
9671548424
virtual trackball code
2006-06-26 22:59:28 +00:00
Brian Paul
199729ff27
locking fixes (Martijn Van Oosterhout)
2006-06-26 19:59:38 +00:00
Brian Paul
78a6000cf2
Use $(LIB_DIR) instead of $(TOP)/lib since libraries sometimes go into lib64/.
...
Probably need to fix the install destinations too...
2006-06-26 15:34:21 +00:00
Tilman Sauerbeck
0deb088cf0
more cleanups
2006-06-23 16:47:08 +00:00
Brian Paul
3cb56804ca
fix glut/freeglut links
2006-06-23 15:27:32 +00:00
Brian Paul
0e794a1bc6
New 'install' targets in makefile. See bug 2372.
2006-06-22 22:50:48 +00:00
Keith Whitwell
b4517527eb
A bunch of tiny tests that I've found helpful bringing up drivers from
...
scratch. These exercise single pieces of functionality and provide a
gentler ramp than trying to use the mesa demos to bring up drivers with.
2006-06-22 16:32:19 +00:00
Keith Whitwell
5fb9f80e37
exercise min/max lod
2006-06-21 14:04:04 +00:00
Keith Whitwell
942b5b7bc0
exercise position invarient vertex program
2006-06-21 14:03:39 +00:00
Alan Hourihane
feb0ff11e5
Check for a valid context
2006-06-21 10:58:04 +00:00
Brian Paul
4cd9e5c3c9
rewrite gluErrorString() to be more legible
2006-06-20 15:30:26 +00:00
Brian Paul
bd0bfd1dc2
reorder a few token definitions
2006-06-20 14:52:22 +00:00
Michel Dänzer
c28834bfbb
Add M32R architecture to test for USE_IEEE and friends (Kazuhiro Inaoka,
...
from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374608 ).
2006-06-20 09:39:32 +00:00
Brian Paul
1ec9ed4f25
fix span code compilation problems, bug 5858
2006-06-20 03:35:17 +00:00
Ian Romanick
4afcd8aa8b
Print the hex value of the errant input when an invalid stencil function is
...
specified.
2006-06-19 16:39:49 +00:00
Alan Hourihane
161de10ce8
If DrawBuffer isn't set, return immediately
2006-06-19 09:27:04 +00:00
Tilman Sauerbeck
11fceb19d3
no need to handle ARL in a special way, it's a generic scalar operation. only tested on r300.
2006-06-18 14:07:10 +00:00
Aapo Tahkola
16d1024f27
fix broken negate
2006-06-18 12:50:27 +00:00
Aapo Tahkola
e6a17b6052
fix broken address register reads
2006-06-18 12:39:58 +00:00
Brian Paul
385f23edf9
Thread safety for Win32. SourceForge bug #1507315 .
2006-06-16 14:50:05 +00:00
Brian Paul
c0168fabed
glPush/PopAttrib fix (bug 6891)
2006-06-16 13:45:29 +00:00
Brian Paul
65897c04c8
don't create include/GLES yet
2006-06-16 13:41:05 +00:00
Brian Paul
c97c5f0b6b
remove obsolete PointSizePtr
2006-06-16 13:40:06 +00:00
Jouk Jansen
c3c64383ca
OpenVMS compile support update
...
Modified Files:
Mesa/src/mesa/main/descrip.mms
----------------------------------------------------------------------
2006-06-16 13:14:35 +00:00
Brian Paul
be906fe05e
added some comments, braces in _mesa_BindTexture
2006-06-15 15:39:10 +00:00
Brian Paul
2d77b25c27
minor clean-ups
2006-06-15 15:36:06 +00:00
Brian Paul
9960ddcd66
comments for gl_array_object struct
2006-06-15 15:34:13 +00:00
Keith Whitwell
0b994ef589
Call _mesa_resize_framebuffer() within intelWindowMoved(). Fixes
...
googleearth glitches.
2006-06-15 12:47:29 +00:00
Keith Whitwell
d048b7d36e
Protect _swrast_read_rgba_span with RENDER_START/FINISH
2006-06-14 10:48:09 +00:00
Brian Paul
4f68411e77
s/ATTRIBUTE/GENERIC/
2006-06-14 04:15:16 +00:00
Brian Paul
62e1fae858
A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are really
...
just aliases for members of the VB->AttribPtr[] array.
Begin replacing FogCoordPtr with VB->AttribPtr[_TNL_ATTRIB_FOG], and similarly
for NormalPtr, TexCoordPtr, PointSizePtr, etc.
2006-06-14 04:05:17 +00:00
Brian Paul
62dc134771
Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*
2006-06-14 03:30:57 +00:00
Brian Paul
3c18d49607
new assertion
2006-06-14 03:29:08 +00:00
Brian Paul
ee06106082
Do a cheesy implementation of glXWait/GetVideoSyncSGI() functions, but
...
disable reporting the GLX_SGI_video_sync extension anyway.
Google Earth works now.
2006-06-13 23:06:25 +00:00
Brian Paul
2d087480b4
GLX_BAD_CONTEXT checks in video-sync functions
2006-06-13 23:04:41 +00:00
Brian Paul
e49aea9cef
remove debug printf
2006-06-13 22:17:41 +00:00
Brian Paul
f9d88c8204
clean-ups and new comments
2006-06-13 17:24:36 +00:00
Brian Paul
4df010b296
fix glVertexAttribPointerARB's normalized behaviour
2006-06-13 17:17:32 +00:00
Brian Paul
34a3779aae
remove unused index_attr1fv()
2006-06-13 17:16:56 +00:00
Brian Paul
7dfdf3a5b7
Rename some functions/macros to better reflect their behaviour:
...
3F -> 3FN because integer types are normalized
4FC -> 3FN because we can normalize non-color attributes
2006-06-13 17:13:15 +00:00
Brian Paul
44b82dffe8
In import_attrib(), use the from->Normalized flag to choose the right
...
translation function.
Before this fix the 'normalized' flag to glVertexAttribPointerARB() was ignored.
2006-06-13 17:06:44 +00:00
Brian Paul
5c7c5a762e
s/0/NULL/
2006-06-13 17:04:26 +00:00
Brian Paul
1c546ae552
When using an ARB vertex program, the generic vertex arrays do not alias the
...
conventional arrays.
Typo: s/writeable/writable/
2006-06-13 17:03:25 +00:00
Brian Paul
8bc00c2047
fix size assertions in _mesa_init_teximage_fields()
2006-06-13 16:45:28 +00:00
Brian Paul
212d7e8369
minor simplification in texcoord array import
2006-06-13 14:50:44 +00:00
Michel Dänzer
73e73ffdd5
Fix command line parsing.
2006-06-13 08:37:03 +00:00
Brian Paul
bd1e587ebe
remove some unneeded #includes
2006-06-13 03:29:02 +00:00
Brian Paul
0395cc01fd
Fix a few conversion bugs. For example, GLshort->GLfloat conversion
...
didn't work for color arrays.
2006-06-13 03:22:52 +00:00
Kristian Høgsberg
c25eb99f95
Fix all instances of calling __glXSetupForCommand before GetReqExtra.
2006-06-13 01:41:18 +00:00
Brian Paul
18d0efb555
removed incorrect const qualifier
2006-06-13 01:14:48 +00:00
Ian Romanick
9853aac495
Make r300 driver build with GL_APPLE_vertex_array_object changes.
...
Sorry for the breakage. These changes are only build tested.
2006-06-12 22:39:49 +00:00
Brian Paul
a3feff414f
GL_APPLE_vertex_array_object is new
2006-06-12 20:02:45 +00:00
Brian Paul
48c03d7c9f
s/buffer/arrays/
2006-06-12 20:02:11 +00:00
Brian Paul
d2fb24a671
make do_vertex_attrib_enable() static
2006-06-12 19:59:34 +00:00
Brian Paul
f2ce358331
include glxclient.h to silence missing prototypes warning
2006-06-12 19:56:57 +00:00
Brian Paul
c8f8fbecd7
remove const qualifier from glGenVertexArraysAPPLE() parameter
2006-06-12 19:47:44 +00:00
Brian Paul
0e0e3b05ab
include arrayobj.h
2006-06-12 19:46:14 +00:00
Brian Paul
050d39b3f4
remove unused var
2006-06-12 19:45:43 +00:00
Ian Romanick
ee34e6ef71
Add support for GL_APPLE_vertex_array_object. Several test programs
...
and demos are also added.
Adding basic support to drivers should be as easy as just enabling the
extension, though thorough test would also be required.
2006-06-12 16:26:29 +00:00
Alan Hourihane
6254d59043
fire vertices before context destruction.
2006-06-12 08:52:29 +00:00
Tilman Sauerbeck
51eb359ea9
destroy the memory manager along with the context
2006-06-11 09:12:27 +00:00
Roland Scheidegger
5b90cf2f2f
enable arb_vertex_program by default if drm is new enough. Do a fallback when it's a nv_vp as there could be issues.
2006-06-10 00:51:54 +00:00
Claudio Ciccani
da4b01211b
Added some notes about this implementation.
2006-06-09 15:20:26 +00:00
Claudio Ciccani
4812a59754
Enable setting invible cursors.
2006-06-09 15:19:05 +00:00
Claudio Ciccani
6acc6dd0c4
Separated joystick pointer coordinates from mouse pointer coordinates.
2006-06-09 15:18:04 +00:00
Roland Scheidegger
52c5d9c5b7
shuffle some code to make some assertions in the _savage_texstore_a111xxxx functions compile without error...
2006-06-09 00:28:53 +00:00
Brian Paul
5dbd0a400a
added info about prerequisites for building DRI drivers
2006-06-08 23:42:07 +00:00
Brian Paul
11ea8cb0a2
fix glBegin error test
2006-06-08 23:12:58 +00:00
Brian Paul
ee7e58e111
check for invalid mode in glBegin(), bug 7142
2006-06-08 23:11:35 +00:00
Tilman Sauerbeck
a0daa1220f
include tnl/tnl.h for _tnl_program_string()
2006-06-08 21:17:08 +00:00
Tilman Sauerbeck
3ebf0418a9
mark ARL operand as scalar (Roland Scheidegger)
2006-06-08 21:12:21 +00:00
Tilman Sauerbeck
0bc09bdace
struct op_names: get rid of the 'output operands' field as it's not used (Roland Scheidegger)
2006-06-08 21:09:17 +00:00
Brian Paul
0c65604eeb
links to ClosedGL and S3TC library
2006-06-08 19:59:41 +00:00
Roland Scheidegger
d6213e6023
Improve slightly wrong CMP_SRCS test to avoid unencessary instructions. Clean up the r200 vertex program code a bit.
2006-06-08 17:46:21 +00:00
Brian Paul
808809b061
updated Pixmap vs. XImage info
2006-06-07 14:01:31 +00:00
Aapo Tahkola
37474eca68
prevent possible program mix up with sw vps (Roland Scheidegger)
2006-06-06 23:44:05 +00:00
Aapo Tahkola
9248882ca2
prevent run_arb_vertex_program from running tnl programs unless ctx->_MaintainTnlProgram is set
2006-06-06 22:24:12 +00:00
Aapo Tahkola
9ba2006594
make sure tex format is supported.
2006-06-06 18:37:45 +00:00
Aapo Tahkola
2f42558050
various fixes (Roland Scheidegger)
2006-06-06 18:25:47 +00:00
Brian Paul
4cb9fffa7e
Added simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
...
and cast. Simplifies the code a little bit elsewhere.
2006-06-03 15:32:27 +00:00
Brian Paul
3696f0ee1d
updates for using libdrm (Hanno Bock)
2006-06-03 15:17:07 +00:00
Brian Paul
6f172f7aba
minor clean-ups
2006-06-02 22:51:45 +00:00
Roland Scheidegger
98c791b543
implement arb_vertex_program in hw for r200. Code contains still some hacks, generic attribs cause a fallback, but otherwise it seems to work quite well. Passes all glean vertProg1 tests with the exception of the degnerated LIT case (which is a hw limitation), as well as runs the r200 render path of doom3/quake4 (1.1 patch needed for quake4). The code is heavily borrowed from the r300 driver as vertex programs encoding is almost identical. arb_vertex_program is not yet announced by default and still needs to be enabled via driconf.
2006-06-02 22:47:31 +00:00
Brian Paul
65ced47453
Thomas Sondergaard's API tracer
2006-06-02 14:50:28 +00:00
Brian Paul
21fbdb14e9
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO
2006-06-02 12:51:56 +00:00
Brian Paul
79d8db77b9
fix depth-format rectangular textures
2006-06-02 12:47:42 +00:00
Brian Paul
2b04dd9d2c
fix depth-component test to allow rectangular textures
2006-06-02 12:46:53 +00:00
Roland Scheidegger
b302419abe
remove code dealing with drmMinor version < 6 since all radeon drivers request at least drmMinor 6 anyway.
2006-06-02 01:52:54 +00:00
Roland Scheidegger
5377ac80dc
retry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention as drm seems to never return EAGAIN) in all radeon drivers.
2006-06-01 23:21:43 +00:00
Roland Scheidegger
fe57ed4f25
Fix extended swizzling in vertex programs by introducing special swizzle instruction, extend the 2 bit rsw field to 3 bit like used in other places. While here, also fix up rsw (negation), dph and try to fix up rsq with negative values (doesn't work, bug seems elsewhere) in the sse codegen code.
2006-06-01 22:56:40 +00:00
Brian Paul
4d3ab19abf
document MESA_TEX/TNL_PROG env vars
2006-06-01 20:22:30 +00:00
Brian Paul
1ec9b5a5a9
fix extension_supported() function, added comments
2006-05-31 20:36:52 +00:00
Tilman Sauerbeck
e689a7fc6a
SWZ is nearly identical to MOV. the difference is that SWZ supports per-component negation, which MOV doesn't. as that's handled transparently, we can use the same code for them.
2006-05-31 17:57:14 +00:00
Tilman Sauerbeck
49db174df5
pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's VSF_FLAGs now
2006-05-31 17:37:23 +00:00
Claudio Ciccani
9efe17ed91
Updated config file.
2006-05-31 17:06:05 +00:00
Claudio Ciccani
fe94d0b335
Added some example progs using DirectFBGL.
2006-05-31 17:05:11 +00:00
Claudio Ciccani
b18191cf30
Added DirectFB GLUT implementation.
2006-05-31 17:02:45 +00:00
Claudio Ciccani
9400550c16
Fixed bug with multiple contexts.
...
Added support for ARGB4444 and ARGB2554.
Added hardware accelerated Clear().
2006-05-31 17:00:10 +00:00
Brian Paul
55ad3cc055
fix bug 7077 - mem leak
2006-05-30 22:26:21 +00:00
Brian Paul
a8c4242395
Define new NEGATE_* tokens for setting the src register's NegateBase field.
...
Before, we were using GL_TRUE/GL_FALSE in a few places.
Note: only the SWZ instruction can negate individual components.
2006-05-30 22:17:35 +00:00
Brian Paul
e4cb9cd167
remove redundant 'const'
2006-05-30 22:15:24 +00:00
Brian Paul
8333012b56
free convolved image / fix mem leak (bug 7077)
2006-05-30 21:58:55 +00:00
Tilman Sauerbeck
1d0fa45bc1
minor code cleanup, no actual changes
2006-05-30 18:49:20 +00:00
Tilman Sauerbeck
6be8127ea4
don't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which is actually handled
2006-05-30 16:57:52 +00:00
Michal Krol
51fec69ea6
Add x86sse.h.
2006-05-30 09:59:05 +00:00
Michal Krol
4decba90be
Remove not needed forward declaration.
2006-05-30 09:45:33 +00:00
Michal Krol
23b7c7dc14
Make it running under Linux.
2006-05-30 09:38:16 +00:00
Michal Krol
44d5c8668a
First draft.
2006-05-30 09:35:36 +00:00
Tilman Sauerbeck
b20cdf1d28
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in parse_generic_attrib_num()
2006-05-29 16:24:28 +00:00
Brian Paul
919f6a070c
generic attribute 0 wasn't handled correctly (Jesse Allen)
2006-05-29 14:37:56 +00:00
Roland Scheidegger
76b6e88e56
fix some whitespace in previous commit
2006-05-27 09:09:56 +00:00
Roland Scheidegger
8a61821057
preparation for r200 hw vertex programs. Increase R200_CMD_BUF_SZ to 16k instead of 8k (the reasons why it was exactly 8k are unclear). Add register defines, sanity code, fix potential issue with wrong statechange order when disabling fragment programs.
2006-05-27 09:03:25 +00:00
Brian Paul
04fa003a50
The ctx->_TexEnvProgram that's allocated in update_state() doesn't seem to
...
be needed (it's set in texenvprogram.c) and is a memory leak according to
valgrind.
Disable with #if 0 / #endif
2006-05-24 03:34:17 +00:00
Brian Paul
65a51c0d62
Roll _mesa_free_parameters() into calling function (the only caller).
...
Replace assert(0) with _mesa_warning().
Use new _mesa_align_realloc() function.
New comments, clean-ups.
2006-05-24 03:30:31 +00:00
Brian Paul
5a67af97fa
fix a small memory leak in _mesa_add_state_reference()
2006-05-24 03:25:22 +00:00
Brian Paul
1798d9a8a4
added _mesa_align_realloc()
2006-05-24 03:15:46 +00:00
Brian Paul
0c1cbd5805
use GLbitfield for StateFlags, improved comments
2006-05-24 03:01:58 +00:00
Brian Paul
d9736db667
Add const qualifiers in a number of places.
2006-05-23 02:44:46 +00:00
Brian Paul
f5a2ac95c3
init mask=0 to silence warning
2006-05-23 02:16:20 +00:00
Brian Paul
fe9026d04a
make mgaSetFence() and mgaWaitFence() static
2006-05-23 02:13:53 +00:00
Brian Paul
a6f7f10efa
prototype i915_udpate_fog() to silence warning
2006-05-23 02:12:08 +00:00
Brian Paul
b8f2f6fee1
In cache_item(), there was sizeof(void) expression.
...
Replace void *key parameter with const struct state_key *
2006-05-23 01:55:31 +00:00
Brian Paul
acc9566b86
GL_INDEX_OFFSET fix
2006-05-22 17:41:59 +00:00
Brian Paul
17befff800
GL_INDEX_OFFSET didn't work with CI->RGB mappings.
...
Added some const qualifiers.
2006-05-22 17:40:07 +00:00
Keith Whitwell
8065c120c4
memory usage fixes for glean/conform, use a better hash function
2006-05-22 16:09:27 +00:00
Keith Whitwell
64da16146f
Fix typo
2006-05-22 14:30:58 +00:00
Keith Whitwell
5ddc53f899
Better caching for texenv programs.
...
Initialize some values correctly.
2006-05-22 14:17:32 +00:00
Keith Whitwell
7e3fa7e837
Speedup the venerable mm.[ch] allocator with doubly linked lists and a
...
separate list of free segments.
2006-05-22 12:32:35 +00:00
Brian Paul
b0b6d1abe5
In gl_texture_image, replace ImageStride with an ImageOffsets array.
...
Some hardware lays out 3D mipmaps in a manner that can't be expressed
with a simple image stride.
The ImageOffsets array is allocated and initialized to typical defaults
in the _mesa_init_teximage_fields() function. If needed, a driver will
then have to replace these offsets.
TexStore and TexelFetch routines updated to use offsets array.
2006-05-20 16:19:48 +00:00
Brian Paul
226d0187b5
glxinfo -l expanded, fixed bug 6863
2006-05-20 15:18:23 +00:00
Brian Paul
04d5d16415
remove some redundant functions, fix-up reference counting
2006-05-20 15:16:45 +00:00
Brian Paul
89ffca52ac
use new _mesa_remove_renderbuffer()
2006-05-20 15:12:42 +00:00
Brian Paul
7ac5b7b934
use new _mesa_dereference_frame/renderbuffer() functions
2006-05-20 15:08:25 +00:00
Brian Paul
b52f02121b
Added _mesa_remove_renderbuffer() as a counterpart to _mesa_add_renderbuffer().
...
Added _mesa_dereference_renderbuffer() to encapsulate renderbuffer
reference count decrement, delete, locking.
2006-05-20 15:07:32 +00:00
Brian Paul
2eb88c1752
Added _mesa_dereference_framebuffer() to encapsulate reference count
...
decrement, delete and locking.
2006-05-20 15:06:35 +00:00
Brian Paul
cbb19930b3
some new comments
2006-05-19 17:31:09 +00:00
Brian Paul
20e11b2332
remove an assertion
2006-05-19 17:27:33 +00:00
Brian Paul
4e470db0b9
print 2D vs 3D in window
2006-05-19 16:48:42 +00:00
Brian Paul
5ec34f0ff9
also test 3D textures (press '2'/'3' to toggle)
2006-05-19 16:42:01 +00:00
Brian Paul
083f8111aa
added some CHAN_BITS tests
2006-05-19 03:49:13 +00:00
Brian Paul
68bc7df638
replace FORMAT var with RB_TYPE
2006-05-19 03:47:16 +00:00
Brian Paul
fd02ca7711
Demonstrate rendering 8, 16 and 32-bit/channel images all in one program.
...
Like older osdemo.c program, but test more OpenGL features like texturing,
blending, lines.
2006-05-19 03:43:39 +00:00
Brian Paul
e35b9058ce
updated docs for off-screen rendering
2006-05-19 03:42:16 +00:00
Brian Paul
d44248ca00
Allow rendering 8, 16 and 32-bit/channel images without recompiling.
...
Uses new renderbuffer adaptors.
2006-05-19 03:41:37 +00:00
Brian Paul
6a74f65c58
install renderbuffer adaptors when color channel sizes need to be reduced
2006-05-19 03:40:29 +00:00
Brian Paul
d2e5598cd3
added rbadaptors.[ch] files
2006-05-19 03:37:41 +00:00
Brian Paul
e2db790a46
added rbadaptors.c
2006-05-19 03:35:38 +00:00
Brian Paul
3c30b35134
Renderbuffer adaptors.
...
When compiling Mesa with CHAN_BITS=16 or 32, these adaptors allow rendering
into color buffers with smaller channel sizes.
2006-05-19 03:33:50 +00:00
Brian Paul
23a5c57cee
minor simplification
2006-05-18 22:31:19 +00:00
Brian Paul
0ca9082cbd
texture EnvColor needs to be converted to GLchan, not GLint
2006-05-18 22:11:09 +00:00
Aapo Tahkola
787fd58186
Dont allow 16 tex units to be used at all.
2006-05-18 21:15:26 +00:00
Brian Paul
5e51ebd8eb
use -march=i486 instead of -m486 (bug 6954)
2006-05-18 17:04:13 +00:00
Brian Paul
0d957ca400
change initialization of texcoords - not all C compilers support non-constant array initializers
2006-05-18 14:16:43 +00:00
Brian Paul
3d8a791ff9
add extra APP_LIB_DEPS (bug 6954)
2006-05-18 13:55:31 +00:00
Brian Paul
c717ffa146
added solaris-x86-gcc-static
2006-05-17 22:51:44 +00:00
Brian Paul
7d848c3308
generate shared lib, not static
2006-05-17 22:51:23 +00:00
Brian Paul
9cc115e417
formerly known as solaris-x86-gcc
2006-05-17 22:51:08 +00:00
Brian Paul
4c6319db9c
call reshape() after init() to set initial projection/viewing transform (see bug 6941)
2006-05-17 22:44:18 +00:00
Tilman Sauerbeck
b99c801f73
unbreak the build
2006-05-17 16:39:40 +00:00
Dave Airlie
cea0c74bcb
add texture rectangle support for i815, I wrote the original patch about
...
2 years ago, I finally dug out an i815 and got it working
2006-05-17 06:26:25 +00:00
Tilman Sauerbeck
601c02f783
bug 6941: fixed initial rendering problems in glxgears
2006-05-16 16:27:54 +00:00
Michal Krol
bd4256acfd
Fix typo.
2006-05-16 10:37:16 +00:00
Michal Krol
0b9d7e477a
Add functions.
2006-05-16 10:11:29 +00:00
Michal Krol
969c43108e
Write attribs to slang machine.
2006-05-16 10:10:56 +00:00
Michal Krol
b4c5905549
Change error message wording.
2006-05-16 10:10:10 +00:00
Michal Krol
b6e92d090c
Rename print() to printMESA().
2006-05-16 10:09:32 +00:00
Michal Krol
563f8ad50a
Fix attrib handling.
2006-05-16 10:08:30 +00:00
Michal Krol
21ef956e9a
Extend printMESA function to output also to shader's info log.
...
Fix float-to-int conversion for x86 back-end.
2006-05-16 10:04:24 +00:00
Michal Krol
a67330d157
Cleanup code. Change constructor prototype.
2006-05-16 10:01:07 +00:00
Michal Krol
d1b40400d6
Cleanup code.
2006-05-16 09:53:42 +00:00
Michal Krol
ecf2e5b0a1
Change constructor prototype.
...
Fix struct field accessing.
2006-05-16 09:52:02 +00:00
Michal Krol
d2b9e1c560
Remove carriage returns.
2006-05-16 09:44:08 +00:00
Michal Krol
d88c67fd81
Add GetInfoLogLength and WriteAttrib functions.
...
GetInfoLog for shaders if different - it is a concatenation
of compiler output and executor output produced by printMESA.
Fix bugs.
2006-05-16 09:43:09 +00:00
Michal Krol
a1a02e6203
Cleanup GLhandle-to-object translation macros.
...
Fix minor bugs.
2006-05-16 09:40:30 +00:00
Michal Krol
32c2f939e6
GLSL regression test suite.
2006-05-16 09:32:30 +00:00
Brian Paul
2ca741ad4b
added a few extension #ifdef tests
2006-05-15 15:35:38 +00:00
Brian Paul
5e2e96b6f0
Added a check_context_limits() function that checks that the ctx->Const.*
...
fields are legal. May catch some driver development bugs.
Called the first time a context is bound.
2006-05-15 15:26:04 +00:00
Brian Paul
c8ea111166
usage() function
2006-05-15 15:14:37 +00:00
Brian Paul
20215ecc7d
remove some unused macros
2006-05-14 16:42:20 +00:00
Brian Paul
d77a165eac
s/GLbyte/GLubyte/
2006-05-14 16:27:10 +00:00
Brian Paul
ed875a4cb3
fix typo, remove dead code
2006-05-14 15:56:07 +00:00
Brian Paul
ad7805dfee
Expanded output with -l option: vertex/fragment program and vertex/fragment
...
shader limits.
Misc sync-ups with x.org copy of glxinfo.
2006-05-13 00:18:12 +00:00
Dave Airlie
f1dbacc6ad
the r300 should only use 8 until Mesa can deal with this
2006-05-12 06:03:27 +00:00
Dave Airlie
5d7ab75b02
this should use the configured number not the MAX, this has no effect until
...
the core mesa swrast number is fixed, just spotted this on the way past
2006-05-12 03:50:10 +00:00
Brian Paul
88cf5aa783
In __glXPushArrayState() we weren't pushing the index field.
...
But later, in __glXPopArrayState(), we were using that field to set
the active_texture_unit. The value was garbage and could lead to
things blowing up.
See bug 6863.
2006-05-11 16:27:39 +00:00
Brian Paul
fa489dd043
simplify image setup code, added LOD Bias control (l/L keys)
2006-05-11 01:15:48 +00:00
Brian Paul
aecd02b391
simple texture compression test
2006-05-10 22:47:06 +00:00
Brian Paul
932c2fc291
new test image - Delicate Arch, Utah
2006-05-10 22:44:26 +00:00
Brian Paul
bb2dd388d0
Test program for exercising GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MAX_LEVEL.
2006-05-10 22:37:56 +00:00
Brian Paul
1e7d84e258
move check for event.xbutton.button <= GLUT_MAX_MENUS (see sf bug 1484284)
2006-05-10 19:21:39 +00:00
Brian Paul
700359ca5a
check if button >= GLUT_MAX_MENUS in glutAttacheMenu()
2006-05-10 19:21:16 +00:00
Keith Whitwell
adc0490420
Clean up previous change slightly
2006-05-10 09:00:16 +00:00
Keith Whitwell
452be7e7ef
Use a (much!) larger executable memory heap so that the glsl x86
...
allocations succeed. I'm not sure this is really necessary...
2006-05-10 08:57:34 +00:00
Brian Paul
2b3aab0717
check event button against GLUT_MAX_MENUS (bug 1484284)
2006-05-09 14:51:57 +00:00
Brian Paul
ab13ec10eb
16/32-bit chan fixes, texture compression fixes
2006-05-09 14:41:08 +00:00
Brian Paul
791e7b385a
When error-checking 'unit' against num_texture_units, need to use >=, not >.
...
See bug 6863.
2006-05-09 14:36:58 +00:00
Brian Paul
008ed1df83
Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whether
...
all formats or just those without restrictions/limitations should be returned.
We want all when validating the internalFormat parameter to
glCompressedTexImage2D but only want unrestricted formats when handling the
GL_COMPRESSED_TEXTURE_FORMATS query.
2006-05-09 13:51:17 +00:00
Brian Paul
5e4c39dc0e
use _mesa_compressed_texture_size() for GL_TEXTURE_COMPRESSED_IMAGE_SIZE query
2006-05-09 00:00:46 +00:00
Brian Paul
a546769733
two more texture compression fixes
2006-05-08 23:59:38 +00:00
Brian Paul
c3c19be8e0
More updates for texture compression.
...
Added _mesa_compressed_texture_size_glenum() for validating the imageSize
parameter to glCompressedTex[Sub]Image1/2/3() which does _not_ call
ctx->Driver.CompressedTextureSize() - since that could return a padded size.
2006-05-08 23:52:32 +00:00
Brian Paul
5999c5b620
Fix a number of texture compression issues.
...
Pass the MESA_FORMAT_* token to the _mesa_compressed_row_stride(),
_mesa_compressed_texture_size() and _mesa_compressed_image_address()
functions since we want to use the driver-chosen format, not the user's
internalFormat hint.
Consolidate code related to choosing the texture format in texstoree.c
2006-05-08 19:14:38 +00:00
Brian Paul
c93c18abf1
fix warning
2006-05-08 19:11:21 +00:00
Keith Whitwell
71b2504e03
updates to dri drivers for recent stencil changes
2006-05-08 09:03:35 +00:00
Brian Paul
960973b2ec
added CHAN_BITS != 8 test
2006-05-07 16:16:23 +00:00
Brian Paul
85bc17495b
misc clean-ups
2006-05-07 16:14:58 +00:00
Brian Paul
ca8b235188
minor clean-ups around DepthScale/Bias
2006-05-07 16:14:13 +00:00
Brian Paul
8a1848bf99
restore -O flag (bug 6814)
2006-05-06 22:39:33 +00:00
Brian Paul
0c7cbf0a7c
Check for overflow when converting floating pt Z values to 32-bit GLuint.
2006-05-06 22:30:33 +00:00
Brian Paul
efbf170cfb
updated GLX_EXT_texture_from_pixmap tokens (Dave Reveman)
2006-05-05 18:19:54 +00:00
Brian Paul
9b20b68af1
check for float->uint overflow in _mesa_unpack_depth_span()
2006-05-05 14:49:38 +00:00
Keith Whitwell
6717a7aca0
Define VERT_RESULT_EDGE
2006-05-05 09:26:40 +00:00
Dave Airlie
86740f1593
remove temporary code from keithw, this in theory isn't used at the moment
...
anyways unless INTEL_BATCH is turned on
2006-05-05 06:53:11 +00:00
Dave Airlie
2364d9abd3
Fix i915 driver after stencil changes in Mesa 6.5
2006-05-05 06:52:32 +00:00
Keith Whitwell
ab377ce414
Release temporary
2006-05-05 00:00:46 +00:00
Ian Romanick
6e2ab82f5c
Fix some silly spelling errors.
2006-05-03 17:12:12 +00:00
Dave Airlie
ee251d4313
remove some unneeded includes
2006-05-02 08:58:42 +00:00
David Reveman
bea7fe57c1
Update to final EXT_tfp tokens
2006-05-02 08:54:39 +00:00
Dave Airlie
698b04c735
move the pkg config flags for libdrm to the bottom
2006-05-02 08:32:46 +00:00
Adam Jackson
0157624557
Update function signatures for EXT_tfp entrypoints.
2006-05-01 22:25:18 +00:00
Brian Paul
ae7f22f1ef
new, faster version of __gluInvertMatrixd(), bug 6748
2006-05-01 16:01:17 +00:00
Jeremy Kolb
0174d894ef
Bumped support for xcb 0.9
2006-04-29 16:13:02 +00:00
Tilman Sauerbeck
c5b3343e65
added a trailing newline to pacify gcc
2006-04-28 21:57:32 +00:00
Tilman Sauerbeck
9ecd280f33
fptest1 requires GL_NV_fragment_program
2006-04-28 21:50:41 +00:00
Brian Paul
6a769d97e3
fix second memory leak (bug 5557)
2006-04-28 15:42:15 +00:00
Brian Paul
49a80ca2bc
fix first memory leak (bug 5557)
2006-04-28 15:40:11 +00:00
Brian Paul
c4fe46f0b8
fixes for CHAN_BITS!=8
2006-04-27 02:50:31 +00:00
Brian Paul
444cd293fd
assorted clean-ups, fixes
2006-04-27 02:47:50 +00:00
Brian Paul
e814d5e89f
replace a bunch of casts with GET_XRB macro
2006-04-27 02:46:20 +00:00
Brian Paul
edc16a5f7a
fix a few stride computations in _mesa_texstore_rgba()
2006-04-26 18:43:22 +00:00
Aapo Tahkola
e440bcf41a
fix warnings.
2006-04-26 12:00:53 +00:00
Aapo Tahkola
d44c3e647f
R300_SPAN_DISABLE_LOCKING env var
2006-04-26 11:36:27 +00:00
Brian Paul
a4ebd5f684
remove _glthread_INIT_MUTEX() call
2006-04-26 03:31:59 +00:00
Brian Paul
65dccf377d
fix an assertion
2006-04-26 03:29:30 +00:00
Brian Paul
faee3f0f1e
minor clean-up
2006-04-26 03:19:54 +00:00
Brian Paul
901ac21938
remove old XFree86 tag
2006-04-26 03:19:37 +00:00
Brian Paul
9c4fd26bca
update some tests for visual bit depths to use renderbuffers
2006-04-25 22:55:19 +00:00
Brian Paul
2486267dda
use _TNL_FIRST/LAST_MAT indexes
2006-04-25 22:26:21 +00:00
Michal Krol
6acf1e93a2
Remove carriage returns.
2006-04-25 10:11:59 +00:00
Brian Paul
cb0ae25a4e
vertex attrib alias change, glPopAttrib/GL_DRAW_BUFFER bug fix
2006-04-25 00:55:47 +00:00
Brian Paul
94b30dc390
Put color index attribute into the 6th attribute slot.
...
Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values
instead of specific vertex attributes.
Remove the EdgeFlagv function from the GLvertexformat struct.
2006-04-25 00:53:25 +00:00
Brian Paul
5bdc6fdebc
silence warnings
2006-04-25 00:31:22 +00:00
Brian Paul
095c6699f4
No longer alias generic vertex attribs with conventional attribs for GL_ARB_vertex_program.
2006-04-25 00:21:32 +00:00
Brian Paul
f12ea2d402
extended swizzle (bug 6727)
2006-04-24 16:33:25 +00:00
Brian Paul
9cd1cc0535
fprintf() clean-up (bug 6730)
2006-04-24 16:32:05 +00:00
Brian Paul
263fff44b4
updated assertion
2006-04-23 15:28:54 +00:00
Aapo Tahkola
44a22a2c28
enable feedback rendering
2006-04-23 08:04:50 +00:00
Aapo Tahkola
a55842b9b3
disable hw locking when entering span rendering for now
2006-04-23 07:59:40 +00:00
Aapo Tahkola
95cc7a6dac
need to hold before freeing
2006-04-23 07:15:19 +00:00
Benjamin Herrenschmidt
aa93b4ced0
Enable USER_BUFFERS, RADEON_VTXFMT_A and HW_VBOS on big endian by forcing all elts
...
to 32 bits (it would be possible to do a half word swap for 16 bits if somebody is interested) and by using the input route mecanism to swap ubyte's properly in r300EmitArrays. Tested with cva, varray and quake3
2006-04-23 05:54:06 +00:00
Brian Paul
2f92adb9e0
Fix yet another issue with popping GL_DRAW_BUFFER state with respect to
...
single vs. multiple outputs and what kind of FBO is currently bound.
2006-04-22 01:20:20 +00:00
Adam Jackson
e60ce392d8
Ensure all GART allocations are freed on context destruction, rather than
...
waiting for the DRM to reap them at process exit. Fixes (fatal) allocation
failures in AIGLX configurations.
Reviewed by: Aapo Tahkola
2006-04-21 19:53:52 +00:00
Adam Jackson
ca98203cd9
Fix format strings for LP64
2006-04-21 19:51:29 +00:00
Brian Paul
b87957d59a
pass color index as float, not int
2006-04-21 02:44:35 +00:00
Brian Paul
ba999b1a3f
depend is not a .PHONY target
2006-04-21 01:13:16 +00:00
Brian Paul
a95dd106e3
fix indentation
2006-04-21 01:02:49 +00:00
Brian Paul
fb87976ef6
use vertex.attrib[3] instead of vertex.color
2006-04-21 01:02:27 +00:00
Brian Paul
8743d00571
s/NV/ARB/
2006-04-21 01:01:58 +00:00
Aapo Tahkola
34ba50522a
limit max program/param length to 255 (spotted by sroland)
2006-04-20 19:43:21 +00:00
Brian Paul
8a97946e0a
check glLoadProgramNV len < 0 (bug 6679)
2006-04-20 15:06:40 +00:00
Brian Paul
45e05dccd9
error_attrib() should generate GL_INVALID_VALUE, not GL_INVALID_ENUM.
...
New doxygen comments, misc clean-ups.
2006-04-20 02:29:26 +00:00
Brian Paul
3538f81513
Make most of the _mesa_noop_*() functions static.
...
Generate GL_INVALID_VALUE, not GL_INVALID_ENUM when glVertexAttrib is called
with a bad index.
Use _mesa_noop_vtxfmt_init() in DRI drivers to initialize vertex format
struct.
2006-04-20 02:16:55 +00:00
Brian Paul
34b3b40af9
some tentative code for _mesa_update_framebuffer_visual()
2006-04-20 00:45:08 +00:00
Dave Airlie
b5d76b6858
SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program
...
specifies a 2/3/4-compontent swizzle suffix, SrcReg->Swizzles is just ORed
against the new component values, without resetting it first.
Attached patch makes tests/vptest2 pass.
From Tilam Sauerbeck bug 6673
2006-04-19 23:15:51 +00:00
Brian Paul
6e542f11c9
minor updates
2006-04-19 16:55:27 +00:00
Brian Paul
53f8b7190e
fix invalid free() problem (bug 6658)
2006-04-19 14:42:01 +00:00
Brian Paul
5beff7c6c1
updates for GNU/Hurd (bug 6657)
2006-04-19 14:03:04 +00:00
Brian Paul
12ad488e59
Replace old README.X11 with updated xlibdriver.html
2006-04-19 03:25:06 +00:00
Brian Paul
b3282a3b9d
assorted AIX, IRIX fixes from Dan Schikore
2006-04-18 12:56:11 +00:00
Brian Paul
e34bf25d2d
-arch AIX64 no longer needed
2006-04-18 12:55:48 +00:00
Michal Krol
2f8496b565
Remove carriage-return chars *ONLY*.
2006-04-18 10:47:19 +00:00
Michal Krol
d55de658b5
Add support for ARB_vertex_shader attrib binding and query.
...
Clean-up ARB_shaderobjects code a bit.
2006-04-18 10:30:29 +00:00
Kristian Høgsberg
fcdc6a7d24
Add .note.GNU-stack section to assembler files to avoid the default behavior
...
of requesting executable stacks.
2006-04-17 18:58:24 +00:00
Brian Paul
28bc3cdfba
another simple FBO test
2006-04-14 16:25:27 +00:00
Brian Paul
3adee0829b
test glReadPixels speed w/ various formats/types, PBOs
2006-04-14 16:20:55 +00:00
Brian Paul
1e1af99132
Use 'file' command in more places to determine the library ABI (IRIX, SunOS,
...
Darwin), removes need to pass in special -archopt flags.
Restore the -dlopen flag afterall.
2006-04-14 14:14:51 +00:00
Brian Paul
6bef5e7621
Don't have to pass ABI-related flags to mklib anymore.
2006-04-14 14:13:00 +00:00
Brian Paul
9326962f06
Silence a few -pedantic warnings.
...
Remove ^M chars.
Replace _mesa_get_string() with simpler copy_string().
2006-04-14 03:43:39 +00:00
Brian Paul
a76c216b37
s/MaxTextureUnits/MaxTextureCoordUnits/
2006-04-14 02:28:26 +00:00
Brian Paul
780155ab31
6.5.1 fixes
2006-04-14 02:26:40 +00:00
Brian Paul
730b26556b
When popping GL_DRAW_BUFFER state, need to re-do error checking since
...
validity depends on whether a window-system FBO or user-created FBO is
currently bound. glPopAttrib() may generate GL_INVALID_OPERATION because
of this.
2006-04-14 02:25:35 +00:00
Brian Paul
61608ecfa7
silence -pedantic warning
2006-04-14 02:21:04 +00:00
Brian Paul
767ffdcc9f
don't need s_depth.h
2006-04-14 02:20:47 +00:00
Brian Paul
ee4e75bd6f
Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]Units
...
in various places.
Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image
limits when referenced, not just in glActiveTexture().
2006-04-14 02:20:18 +00:00
Brian Paul
1d886a81ad
If the image file is RGB, convert to RGBA (fixes segfault).
...
Added CheckError() calls.
Remove -ci option.
2006-04-13 19:45:42 +00:00
Brian Paul
da238ee06a
Fix comment about MaxTextureUnits, needs to be min of coord and image units.
...
See bug 5994.
Also add a few assertions.
Use MaxTextureUnits in get.c code.
There's probably other places where we need to clean-up the usage of the
MaxTexture[Coord/Image]Units constants.
2006-04-13 19:21:58 +00:00
Brian Paul
564b2aa2ef
silence minor warnings
2006-04-13 19:18:40 +00:00
Brian Paul
13abf91b42
casts to fix some -pedantic warnings
2006-04-13 19:17:13 +00:00
Brian Paul
ad38681a00
Set array normalization flag for normals, colors (Keith)
2006-04-13 15:57:29 +00:00
Brian Paul
56e0ee8efe
remove the -dlopen option. Always make both kinds of libs for AIX, Darwin.
2006-04-13 15:17:50 +00:00
Brian Paul
cbed2f8061
more updates (Dan Schikore)
2006-04-13 03:10:16 +00:00
Brian Paul
294d9abf6f
add new configs (Dan Schikore)
2006-04-13 03:00:14 +00:00
Brian Paul
cb32dcfa33
new configs, misc updates (Dan Schikore)
2006-04-13 02:59:29 +00:00
Brian Paul
fe14cf6951
Fixes for AIX, SunOS, Darwin. -dlopen flag to build dlopen()'able modules
...
for AIX, Darwin. (Dan Schikore)
2006-04-13 02:23:25 +00:00
Brian Paul
ecc0d10d2d
Use -I$(INCDIR) to get Mesa, not system headers (Dan Schikore)
2006-04-13 01:54:04 +00:00
Brian Paul
a186c80788
updated tests for defining __FUNCTION__ (Dan Schikore)
2006-04-13 01:52:32 +00:00
Brian Paul
09c8e41955
added 'const' (Dan Schikore)
2006-04-13 01:51:25 +00:00
Brian Paul
c4a4864210
compile fix from Dan Schikore
2006-04-13 01:49:45 +00:00
Aapo Tahkola
c82eadd157
GLboolean cannot hold GLuint! usage of tmus >= 4 no longer lock r300.
2006-04-12 13:51:18 +00:00
Brian Paul
68ad7ca3ba
allow rotation w/ mouse
2006-04-11 23:41:40 +00:00
Brian Paul
da21ca988a
add missing 'union' keyword
2006-04-11 23:23:36 +00:00
David Reveman
ba23f699f0
FBConfig support for EXT_tfp
2006-04-11 12:21:48 +00:00
David Reveman
ea2b711061
Add attrib_list to glXBindTexImageEXT
2006-04-11 12:19:06 +00:00
David Reveman
c6f8ae1085
Add attrib_list to glXBindTexImageEXT
2006-04-11 12:12:13 +00:00
David Reveman
342d1de38c
Fix CreateDrawable
2006-04-11 12:07:41 +00:00
Michal Krol
bb38cadb1c
More GLSL code:
...
- use macros to access and modify render inputs bit-field;
- un-alias generic vertex attributes for ARB vertex calls;
- use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS
(ARB code) in place of VERT_ATTRIB_MAX;
- define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex
attributes for ARB_vertex_shader;
- fix generic attribute index range check in arbprogparse.c;
- interface GLSL varyings between vertex and fragment shader;
- use 64-bit optimised bitset (bitset.h) for render inputs;
2006-04-11 11:41:11 +00:00
Aapo Tahkola
d90ad3fd87
get fog going(for real)
2006-04-11 11:20:43 +00:00
Aapo Tahkola
3ed16bd9cc
rectangular fp16 fixes (Ewald Snel)
2006-04-11 04:20:25 +00:00
Aapo Tahkola
6c419be402
Fog support (Ewald Snel)
2006-04-11 04:17:50 +00:00
Brian Paul
3a5ec72125
use _mesa_debug() instead of message() - fixes poor formatting of output
2006-04-10 23:36:18 +00:00
Eric Anholt
8c3d15ce28
Destroy the GL context after driDestroyTextureHeap, because the driver's
...
DestroyTexObj has a dependence on the glCtx and may segfault otherwise.
2006-04-09 17:48:28 +00:00
Aapo Tahkola
83a43aca23
fix some conflict happenings at context destroy by freeing buffers immediately. array locking can be done with vbos for vtxfmt_a so we dont really need to try to reuse them.
2006-04-08 20:05:50 +00:00
Brian Paul
ff2b910dd1
regenerate SPARC assembly dispatch (bug 6484)
2006-04-07 15:20:33 +00:00
Brian Paul
9073c40c7e
added sunos5-64-gcc (bug 6484)
2006-04-07 15:16:46 +00:00
Brian Paul
1936019cd1
replace >&/dev/null with >/dev/null so it works with all shells
2006-04-07 15:11:51 +00:00
Brian Paul
9f3bcd87db
bump version to 6.5.1
2006-04-07 14:29:52 +00:00
Alan Hourihane
e2af1da1d3
Fix some warnings on x86_64
2006-04-07 08:50:39 +00:00
Dave Airlie
9d3de643d1
make miniglx use libdrm properly
2006-04-07 03:20:56 +00:00
Adam Jackson
d25ad506f2
Coverity #943 : Avoid a NULL chase.
2006-04-07 00:05:50 +00:00
Adam Jackson
03593f53e7
Coverity #1083 : Fix a use after free case.
2006-04-06 23:50:44 +00:00
Brian Paul
0a605f93db
fixed line clipping bug 6512
2006-04-06 22:15:27 +00:00
Brian Paul
51faca1270
Rename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the value
...
only includes the 6 frustum bits, not the user-clip plane bit, nor the vertex
cull bit.
2006-04-06 22:11:57 +00:00
Brian Paul
f51a32e82a
Fix line clipping bug 6512.
...
This fix is to discard the line if both dot products are negative.
2006-04-06 22:07:01 +00:00
Brian Paul
05529fefa4
minor CFLAGS clean-up
2006-04-06 16:50:38 +00:00
Brian Paul
f4d5b1da7b
Set DRIVER_DEFINES instead of DEFINES to fix duplicate flags problem
2006-04-06 16:48:36 +00:00
Brian Paul
0dcab2a86a
Replace DEFINES with DRIVER_DEFINES. If a driver needs to set extra flags,
...
do so with DRIVER_DEFINES.
This eliminates the duplicated flags we were passing to each cc command.
2006-04-06 16:47:51 +00:00
Brian Paul
789eb27870
minor CFLAGS reordering
2006-04-06 16:46:34 +00:00
Brian Paul
c1c954e81b
remove unused var
2006-04-06 16:24:01 +00:00
Brian Paul
a1a9858ca3
update a couple MESA_FORMAT_Zxxx occurances
2006-04-06 16:23:40 +00:00
Brian Paul
e099ce85ca
re-enable animation
2006-04-06 04:34:09 +00:00
Brian Paul
dc32eb8f93
fix render to depth texture bugs
2006-04-06 04:25:48 +00:00
Brian Paul
a9bcf75103
Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.
...
This allows render to depth texture (we don't support floating pt. Z buffers).
Rename MESA_FORMAT_DEPTH_COMPONENT16/32 as MESA_FORMAT_Z16/32.
Software fallback for glCopyTexImage now uses integer temporary image instead
of float, eliminates a lot of float/int conversions.
2006-04-06 04:23:58 +00:00
Brian Paul
762c3618f5
Added render to depth texture support with GL_EXT_framebuffer_object.
...
Only render the shadow/depth texture when really needed, not every frame.
Remove support for old SGIX shadow extensions.
2006-04-06 04:11:28 +00:00
Brian Paul
5722338ea5
do additional checking for setting up depth/stencil wrappers
2006-04-06 04:09:03 +00:00
Brian Paul
32cd166971
remove duplicated framebuffer attachment test
2006-04-05 19:58:37 +00:00
Brian Paul
f08f233d6f
Remove the code that checks for duplicated framebuffer attachments (which
...
generated the error GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT).
This was removed in version 117 of the GL_EXT_framebuffer_object spec.
2006-04-05 19:58:10 +00:00
Brian Paul
59ebe1ff77
pass -m32 or -m64 to linker for SunOS as needed (bug 6484)
2006-04-05 13:43:02 +00:00
Dave Airlie
e80b9c24f4
add tiling/fence support for the miniglx driver
2006-04-05 07:13:17 +00:00
Dave Airlie
2e7af79f48
don't waste the reserved memory, take an approximation of the pool
...
allocator from the X.org driver - not as complicated
2006-04-05 06:20:58 +00:00
Brian Paul
c87809c9ed
just some comments/docs
2006-04-05 03:29:46 +00:00
Brian Paul
1979b6b2de
set the texture border color for the depth texture
2006-04-05 03:26:12 +00:00
Brian Paul
900da88dae
first 6.5.1 bug fix - bug 6498
2006-04-05 03:25:05 +00:00
Brian Paul
9ebe3b6d36
Check/use texture border color when sampling depth textures. (bug 6498)
...
Silence some warnings.
2006-04-05 03:23:44 +00:00
Brian Paul
28b014ee25
Silence minor compiler warnings (-Wextra).
2006-04-05 03:05:17 +00:00
Alan Hourihane
027bb77e02
We always have a back buffer. Fixes visual problems.
2006-04-04 13:03:20 +00:00
Dave Airlie
f8ca99d697
use gart base from drm not try to work it out ourselves.. bump radeon client
...
to need 1.6 drm where this first appeared.. this fixes r300 on PCIE
2006-04-04 11:17:46 +00:00
Dave Airlie
6a9f0a27c3
switch to card_type rather than IsPCI, doesn't change any functionality yet
2006-04-04 11:04:30 +00:00
Michal Krol
7473d17268
Add bitset.h.
2006-04-04 10:25:23 +00:00
Michal Krol
b7339d7023
Fix texcoord interpolation for fragment shaders.
2006-04-04 10:22:05 +00:00
Michal Krol
b4e9750bf4
More GLSL code:
...
- add support for varyings;
GLSL fixes:
- pow was wrongly computed in x86 back-end;
2006-04-04 10:18:07 +00:00
Michal Krol
607b61a994
Bit set.
2006-04-04 10:11:12 +00:00
Michal Krol
1a5fecb4d6
Return GLSL version string (1.10).
2006-04-04 10:08:27 +00:00
Michal Krol
ae76be49eb
Define MAX_VERTEX_ATTRIBS to 16.
2006-04-04 10:06:39 +00:00
Adam Jackson
3c327c9f3a
Fix license header to SGI FreeB. (Eric Kunze, SGI)
2006-04-03 22:23:52 +00:00
Adam Jackson
76a0797c32
Bug #5754 : Allocate texture memory correctly. (Richard Drummond)
2006-04-03 21:28:07 +00:00
Karl Schultz
a9cc078b0e
Fix problem reported by Bill Newman in read_rgba_pixels for 16 and 32 bit (GDI driver). Bug would cause the wrong pixel to be read if more than one pixel requested and could cause memory access violations.
2006-04-03 16:54:25 +00:00
Brian Paul
ac619f4912
64-bit build for sunos5 w/ gcc
2006-04-03 16:09:53 +00:00
Dave Airlie
edd2702287
add miniglx sources to i915
2006-04-03 07:41:31 +00:00
Dave Airlie
225148ea07
if DDX is -1 don't do DDX check
2006-04-03 07:41:14 +00:00
Dave Airlie
a824813d22
use Width
2006-04-03 07:40:44 +00:00
Dave Airlie
5bb5a1908f
add pitch support and use new Width
2006-04-03 07:40:28 +00:00
Dave Airlie
a951c80ae4
setup to use pci access, comment out size bumps,
...
sest xres from real width, use new -1 ddx version
2006-04-03 07:32:11 +00:00
Dave Airlie
808a678d85
do a drm lock/unlock sequence after the client close
2006-04-03 07:31:27 +00:00
Dave Airlie
d61c1cc7c9
add width to struct for width != virtual width
2006-04-03 07:30:48 +00:00
Dave Airlie
cf69d09202
make miniglx use libdrm and libpciaccess
2006-04-03 07:30:23 +00:00
Adam Jackson
b927a75979
Coverity #459 : Silly off-by-one error.
2006-04-03 00:18:03 +00:00
Adam Jackson
5ab5517ba8
Coverity #468 : Fill in the rest of the error_list to match the error codes
...
defined in glxproto.h. Avoids reading semi-random memory (and probably
crashing) when calling __glXErrorString().
2006-04-03 00:00:53 +00:00
Adam Jackson
05ddc4a6c5
Coverity #476 : Avoid walking off the end of ->vtx.attrsz, it's declared to
...
be _TNL_ATTRIB_MAX long so that's not a valid index (woo zero based
indexing).
This code still looks wrong though, the asymmetry between _tnl_copy_to_current
and _tnl_copy_from_current has me worried.
2006-04-02 23:51:30 +00:00
Adam Jackson
b3208c2de9
Coverity #567 : Fix a memory leak on a failure path.
2006-04-02 23:17:49 +00:00
Adam Jackson
1ee92f984b
Coverity #650 : Fix a memory leak when near OOM.
2006-04-02 23:15:35 +00:00
Daniel Borca
75f81ad5f9
Assorted updates.
2006-04-01 13:38:45 +00:00
Daniel Borca
b100484145
Initialize renderbuffer size.
2006-04-01 13:26:31 +00:00
Dave Airlie
278736ff6f
These messages really should be printed all the time, users want to
...
know this not have to set debug for it
2006-04-01 04:40:01 +00:00
Brian Paul
57b61638af
added MD5 checksums for 6.5 files
2006-04-01 02:29:40 +00:00
Brian Paul
09b6b9e9c3
added 6.5 relnotes
2006-04-01 01:49:31 +00:00
Eric Anholt
482d9dd21d
Don't index box by the box's index within numClipRects; just dereference it.
...
Fixes drawing with more than one cliprect. (Keith Packard)
2006-04-01 00:57:57 +00:00
Eric Anholt
9e8659f346
Call driUpdateFramebufferSize when we've found an updated DRI drawable stamp,
...
like other drivers. Failure to do so resulted in incorrect buffer sizes for
resized windows.
2006-04-01 00:55:02 +00:00
Brian Paul
e3f41ce611
6.5 updates
2006-03-31 23:10:21 +00:00
Daniel Borca
3a3e63dc4f
DMesa now uses OSMesa as a back-end.
2006-03-31 20:53:12 +00:00
Daniel Borca
3a46dff27d
Removed empty arrays.
2006-03-31 20:49:55 +00:00
Aapo Tahkola
29d833bd52
Enough testing already
2006-03-31 18:46:33 +00:00
Brian Paul
9305cba6a7
bump version/date
2006-03-31 17:31:22 +00:00
Brian Paul
f2ad1b60c0
Dave Reveman's patch for GLX_MESA_copy_sub_buffer support
2006-03-31 15:48:04 +00:00
Brian Paul
df3d4e0bb9
Fix the fetch_texel_ci8() code to deal with floating point color palettes.
...
Fixes Quake on Windows bug. (Karl Schultz)
2006-03-31 15:22:09 +00:00
Aapo Tahkola
6652dc8aac
free rs300 and ban r350(according to r300.sf.net)
2006-03-31 14:11:41 +00:00
Aapo Tahkola
7da1daf0a2
make u_list adjustable
2006-03-31 10:10:45 +00:00
Karl Schultz
18b72d184c
updated again for 6.5.
2006-03-31 06:54:11 +00:00
Aapo Tahkola
ef5b48dea1
warn about broken dxt 3/5
2006-03-31 03:54:36 +00:00
Aapo Tahkola
2cd4056fae
Dont rely on writebacks
2006-03-31 03:50:29 +00:00
Aapo Tahkola
fb0175db93
disable r300 chips. R300_FORCE_R300 to force
2006-03-31 03:16:39 +00:00
Aapo Tahkola
aa70d92a13
More meaningful warning.
2006-03-31 03:01:28 +00:00
Eric Anholt
aba4967150
The pitches of the driRenderbuffers are in bytes, so no need to multiply by cpp.
...
Fixes software fallbacks. (Keith Packard)
2006-03-30 22:44:51 +00:00
Karl Schultz
174ce730c6
Clean up data structures, finishing off some of the cleanup work suggested by Brian. Now also creating two renderbuffers, so apps can now switch with glDrawBuffer.
2006-03-30 21:53:23 +00:00
Adam Jackson
48547ee129
Clarify which version of Mesa we're talking about
2006-03-30 19:26:54 +00:00
Adam Jackson
823c581f7c
Revert my change from 1.37 as being bogus (see ensuing list discussion for
...
rationale).
2006-03-30 19:23:38 +00:00
Adam Jackson
8982697981
Update the install docs to make explicit note of libdrm version dependency.
...
Change pdx.fd.o to {anon,}cvs.fd.o as appropriate.
2006-03-30 19:21:20 +00:00
Adam Jackson
9542537cee
Style fix, drop the explicit -ldrm from the link line.
2006-03-30 19:20:25 +00:00
Karl Schultz
c3f2c287ce
Fix logic error in viewport function so that we still resize the buffers if the viewport and the window both change to the same new size. This lets the gloss demo work with the -f option.
2006-03-30 18:03:41 +00:00
Brian Paul
9e81d6ae3a
When creating front/back renderbuffers, init the Red/Green/Blue/AlphaBits fields
2006-03-30 16:33:35 +00:00
Brian Paul
94d6bf883b
Init the Red/Green/Blue/Alpha/Depth/StencilBits fields in driNewRenderbuffer()
2006-03-30 16:32:16 +00:00
Brian Paul
84c5d0a789
comments regarding assertions
2006-03-30 16:29:41 +00:00
Karl Schultz
dd7074736f
Use [][3] for write_rgb_span_16
2006-03-30 16:26:26 +00:00
Brian Paul
ef8b89faee
some comments for Darwin
2006-03-30 14:28:28 +00:00
Brian Paul
159ca321cb
added glfbdev.h to MAIN_FILES
2006-03-30 14:27:25 +00:00
Brian Paul
ec83f38e2e
fix bad call to FindLine()
2006-03-30 14:26:29 +00:00
Brian Paul
197d725601
added -f option for full-screeen
2006-03-30 14:25:54 +00:00
Brian Paul
693a66aea9
press '0' for glDrawBuffer(GL_NONE)
2006-03-30 14:24:58 +00:00
Brian Paul
8ea3353ec3
XMesaDrawLine macro, not currently used
2006-03-30 14:20:26 +00:00
Karl Schultz
87af12dbdc
Fixes from Brian to help migrate to render buffer DD interfaces. Also fix bug in the viewport function that was using the viewport size to resize the buffer, when it should have been using the window size. Fix bug in write_rgb_span_32 where the incoming pixel data parameter was coded as a [][4] instead of [][3]. Now all the demos work correctly except singlebuffer.
2006-03-30 07:58:24 +00:00
Karl Schultz
a8c9ecfab0
Fixes from Brian
2006-03-30 07:53:15 +00:00
Dave Airlie
4ecb9f0532
Fix up some incorrect pointers and clear screen
2006-03-30 05:47:08 +00:00
Dave Airlie
8b186e3695
add initial miniglx files for i915, not integrated yet
2006-03-30 04:33:58 +00:00
Karl Schultz
e43edd3c70
Updated for Mesa 6.5
2006-03-29 23:53:43 +00:00
Brian Paul
20e15f9381
Add -ansi -pedantic flags to OPT_FLAGS. This got lost at some point. Good for catching sloppy coding.
2006-03-29 23:45:44 +00:00
Brian Paul
75a8383e8d
Update the _WindowMap matrix in _mesa_set_viewport() and _mesa_DepthRange().
...
This is a temporary fix for the DRI drivers.
Should really only have to update the matrix via _mesa_update_state().
2006-03-29 23:44:31 +00:00
Brian Paul
920023240c
put braces around RENDER_SPAN macro when called, not when defined. Fixes -pedantic warnings in x11 driver
2006-03-29 23:42:44 +00:00
Brian Paul
62c325af3f
fix GETPROCADDRESS usage, remove carriage return chars (bug 6430)
2006-03-29 23:20:49 +00:00
Brian Paul
32244ac7e9
s/glslnose.c/glslnoise/ (bug 6430)
2006-03-29 23:18:13 +00:00
Kristian Høgsberg
3a6d968f37
Fixes to silence warnings in code generated by glapi scripts.
2006-03-29 22:32:38 +00:00
Karl Schultz
cec74532bf
Add newest source code files to project.
2006-03-29 20:55:48 +00:00
Brian Paul
f331bb0312
added some no-op virtual destructors to silence g++ 4.0.0 warnings
2006-03-29 18:54:00 +00:00
Brian Paul
c3051df8e1
fixes from John Shell (bug 6339)
2006-03-29 18:46:46 +00:00
Brian Paul
db79d2abac
minor clean-up
2006-03-29 18:41:19 +00:00
Brian Paul
c19de0b7f6
FP textures and fixes (Ewald Snel)
2006-03-29 15:21:01 +00:00
Brian Paul
e5b6eee15d
fix components initialization in two places (Ewald Snel)
2006-03-29 15:17:57 +00:00
Brian Paul
006e183b6e
move NumNativeAlu/TexInstruction assignments (Ewald Snel)
2006-03-29 15:15:37 +00:00
Jouk Jansen
180b0dab8b
Committing in .
...
Removing <CR>
Modified Files:
Mesa/src/mesa/main/fog.c Mesa/src/mesa/main/hint.c
Mesa/src/mesa/main/mtypes.h
----------------------------------------------------------------------
2006-03-29 12:09:08 +00:00
Brian Paul
a85fbb1d36
prep for 6.5 release
2006-03-29 04:53:02 +00:00
Brian Paul
555478fed6
New code for rendering to depth/stencil textures.
...
Re-org of the renderbuffer wrapper code.
2006-03-29 04:51:03 +00:00
Brian Paul
2742c4e4db
new tests for GL_DEPTH_STENCIL_EXT
2006-03-29 04:48:21 +00:00
Brian Paul
2b430ef56a
a few new assertions
2006-03-29 04:47:34 +00:00
Karl Schultz
b7a5a9db88
Windows makefile to easily build all demo programs.
2006-03-29 04:02:44 +00:00
Karl Schultz
888ab86f85
Repair corrupted file and remove rogue 'test' project.
2006-03-29 04:01:25 +00:00
Brian Paul
2526152a10
fix a GLuint vs GLushort test, new assertions
2006-03-29 04:01:05 +00:00
Brian Paul
519a2e7cb7
Move the computation of the viewport matrix into a new update_viewport_matrix()
...
function since the matrix depends on the viewport params and the framebuffer's
depth buffer resolution.
Fixes some renderbuffer / depth range issues.
This simplifies the _mesa_set_viewport() and _mesa_DepthRange() functions too.
2006-03-29 03:59:34 +00:00
Karl Schultz
b687531f69
Undef a conflicting symbol in Windows.
2006-03-29 03:42:32 +00:00
Karl Schultz
54b65e080e
add showbuffer.[ch] which could be in this dir after the targets are built.
2006-03-29 03:41:38 +00:00
Karl Schultz
3076557ca3
Update for new Mesa entry points. I need to change the python script that generates this file to the new XML scheme, but for now, a manual update is OK.
2006-03-29 02:12:31 +00:00
Karl Schultz
4f21180416
Remove unneeded includes of time.h
2006-03-29 02:09:47 +00:00
Daniel Borca
c61763b5d2
Match pixel addresses with `compute_row_addresses' in RGB mode (also obey RGB/UNSIGNED_BYTE rule).
2006-03-28 21:40:14 +00:00
Roland Scheidegger
08e62a1476
fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 (reported by Jim Duchek). Fix some potential problems with strict-aliasing with r200 and radeon drivers in *UpdateViewportOffset, *PolygonOffset and *UpdateWindow functions (some compiler warnings about strict-aliasing remain in the codegen vertex code, and there may be more problems unnoticed by the compiler).
2006-03-28 17:22:57 +00:00
Brian Paul
0e26ca0834
updated comment about framebuffer's Visual field
2006-03-28 15:28:00 +00:00
Brian Paul
e44499480f
added known issue: render to depth textures not working
2006-03-28 15:25:44 +00:00
Brian Paul
9f6ff49650
update conditional for render to GL_DEPTH_STENCIL texture, check for valid teximage before calling ctx->Driver.RenderTexture()
2006-03-28 15:24:50 +00:00
Brian Paul
c7a5d528c7
a little code movement so we don't make invalid casts from gl_renderbuffers to xmesa_renderbuffers
2006-03-28 15:21:44 +00:00
Aapo Tahkola
b8915340ea
fix #6072 (Keith Whitwell)
2006-03-28 10:26:34 +00:00
Keith Whitwell
1155f64cc0
Revert merge of new/experimental code from texmem branch.
2006-03-28 07:40:57 +00:00
Brian Paul
255e8ebd58
enable GL_ARB_half_float_pixel, was GL_MESAX_half_float_pixel
2006-03-28 01:23:43 +00:00
Brian Paul
95174c4eb2
comment about byteswapping in _mesa_unpack_depth_span()
2006-03-28 01:22:48 +00:00
Roland Scheidegger
f76ff7e4a7
make allow_large_textures 1 by default for radeon and r200, and consequently enable all texture units by default on those cards (3 for radeon, 6 for r200). Fix the usually forgotten DRIVER_DATE accordingly.
2006-03-27 23:53:53 +00:00
Roland Scheidegger
96aa403cee
remove unnecessary typedefs causing compiler warnings
2006-03-27 23:34:53 +00:00
Daniel Borca
004673d4d1
Disable `hidden' attribute for DJGPP
2006-03-27 17:34:31 +00:00
Daniel Borca
0ad1bda7a1
PutRowRGB was not initialized for OSMESA_RGB_565
2006-03-27 17:32:22 +00:00
Dave Airlie
e72b745f32
Fixup makefile for solo non-egl
2006-03-27 00:07:21 +00:00
Brian Paul
ea4fe661d7
merge from texman branch
2006-03-26 05:22:17 +00:00
Brian Paul
4cbd16ed3f
fix some PFNGL* typedefs
2006-03-26 05:09:03 +00:00
Brian Paul
06049e2416
remove carriage returns
2006-03-25 22:52:39 +00:00
Brian Paul
753af3a206
fix issue in _mesa_free_framebuffer_data()
2006-03-25 17:57:52 +00:00
Brian Paul
70207b70c5
check for incomplete FBO in _mesa_Clear()
2006-03-25 16:16:37 +00:00
Brian Paul
1bbc203c6e
Clean up the recent code related to texture_override(). Pass params in a
...
more logical order.
Remove a mess of stray ^M chars.
Fix a bug when checking if the texture object's format is GL_COLOR_INDEX
or GL_DEPTH_COMPONENT. This fixes a segfault when GL_TEXTURE_BASE_LEVEL!=0.
2006-03-24 23:53:50 +00:00
Brian Paul
6494541eaa
lots of debug options, some code movement, etc
2006-03-24 23:17:06 +00:00
Brian Paul
590cd26006
added some missing formats in _mesa_source/dest_buffer_exists()
2006-03-24 22:53:00 +00:00
Aapo Tahkola
ed4ab13cef
Make ARB_vp backends happy with nv arl
2006-03-24 16:35:08 +00:00
Aapo Tahkola
af8d39861d
secondary color fixes.
2006-03-24 16:33:34 +00:00
Brian Paul
c4f2710f9d
Added -l option for explicit locking around Xlib and GLX calls in
...
threaded code. Seems to improve reliability quite a bit.
2006-03-23 17:17:23 +00:00
Brian Paul
436d72e994
Added -p option to create a display connection per thread.
...
This seems more stabile than using one display connection for all threads.
Still get an occasional Xlib: unexpected async reply error, unfortunately.
2006-03-23 16:58:22 +00:00
Dave Airlie
d76ef5867d
make solo build complete
2006-03-23 04:20:37 +00:00
Dave Airlie
0a6040dc2d
fix coverity 1107: use after free
2006-03-23 04:15:29 +00:00
Dave Airlie
eab896cc21
fix coverity 926: use before NULL check
2006-03-23 04:13:37 +00:00
Brian Paul
f756924fa5
Need to check for new state and do readpixels/drawpixels clipping after
...
we call RENDER_START since that may involve validating the drawable and
updating its dimensions.
2006-03-22 22:02:07 +00:00
Aapo Tahkola
4fafe6390b
implement arl and enable hw nv_vp.
2006-03-22 21:29:27 +00:00
Aapo Tahkola
6fc864b9e6
ARL dst idx was undefined.
2006-03-22 21:29:15 +00:00
Brian Paul
daffbe99dc
GL_EXT_packed_depth_stencil should be off by default
2006-03-21 21:57:00 +00:00
Michal Krol
8995544bc9
Silencium gcc warnings.
2006-03-21 10:59:14 +00:00
Michal Krol
071357096e
GLSL fixes:
...
- generate error on NULL pointers in glShaderSourceARB;
- reinstall program object, if current, in glLinkProgramARB;
- vertex and fragment shaders are optional in program object;
- floor asm was wrongly computed for x86 back-end;
- allow for (void) idiom in function prototypes;
- all fixed-state uniforms are updated;
- local variable initializers are working;
- implement texture* and shadow* functions for vertex processor;
- generate error if too many arguments in general constructor;
- trim unused data in general constructor;
- struct r-value field select was badly relocated;
Changes:
- add derived state gl_fog_attrib::_Scale;
- add derived state gl_light::_CosCutoffNeg;
2006-03-21 10:37:40 +00:00
Brian Paul
519b23b21f
Lots of changes/fixes for rendering to framebuffer objects.
...
- When deleting texture objects, unbind from FBOs if necessary.
- Changed driver hooks for starting/ending render to texture.
- Now properly handle case where gl[Copy]TexImage() is called after
glFramebufferTexture[123]D(). That didn't work before.
2006-03-20 18:51:57 +00:00
Brian Paul
4991888fa0
additional assertions and debug code for testing FBO completeness
2006-03-20 15:27:55 +00:00
Brian Paul
34bd1233a9
additional error checking to be sure source renderbuffer exists for glCopyTex[Sub]Image()
2006-03-20 15:27:33 +00:00
Brian Paul
457fb0e128
use new _mesa_sourc/dest_buffer_exists() functions
2006-03-20 15:26:20 +00:00
Brian Paul
7275d4d097
added _mesa_source/dest_buffer_exists() function to easily test if particular renderbuffers are present
2006-03-20 15:25:18 +00:00
Brian Paul
f1038f81e4
fix some buffer binding tests in _mesa_make_current()
2006-03-20 15:20:57 +00:00
Brian Paul
c27c382acc
slightly improved error message
2006-03-20 15:20:30 +00:00
Aapo Tahkola
5319ed0e53
Fix texrect upload conflicts.
2006-03-20 13:37:28 +00:00
Aapo Tahkola
070f280895
Disable tnl programs when doing software vertex programs. compiz with its texrect and lighting needs was broken because of this.
2006-03-19 21:17:14 +00:00
Brian Paul
096dd541bd
minor clean-ups
2006-03-19 19:07:12 +00:00
Aapo Tahkola
77174f0072
-fix texrect fallback when using vtxfmt_a (glitz, xgl, etc.)
...
-struct vertex_buffer to struct radeon_vertex_buffer conversion
-vertex attrib arrays did not supersede conventinal arrays when enabled
2006-03-19 18:04:12 +00:00
Brian Paul
21a4fb4137
Queries of GL_READ_BUFFER and GL_DRAW_BUFFER were still returning the
...
pre-GL_EXT_framebuffer_object state. Now return the read/draw state stored
in the framebuffer objects.
2006-03-19 00:10:22 +00:00
Brian Paul
19b05d5009
Don't call Driver->Bitmap() if no image to render
2006-03-18 21:46:17 +00:00
Jouk Jansen
2d2af2dcf7
Committing in .
...
Mesa/src/mesa/main/imports.h : removed <CR>
Mesa/src/mesa/shader/slang/descrip.mms : added new sources
Modified Files:
Mesa/src/mesa/main/imports.h
Mesa/src/mesa/shader/slang/descrip.mms
----------------------------------------------------------------------
2006-03-17 14:38:41 +00:00
Brian Paul
eec33cc310
Init FogCoordFuncs[0..5] too, remove some unneeded #includes
2006-03-17 04:13:29 +00:00
Brian Paul
0f1d98c422
remove another test for IN_DRI_DRIVER
2006-03-17 04:10:03 +00:00
Kristian Høgsberg
724df02073
Don't use glx_ansic.h functions (__glXMemset).
2006-03-17 00:03:20 +00:00
Brian Paul
2b17741e1b
added #undef GET_DISPATCH
2006-03-16 18:06:34 +00:00
Brian Paul
c6c0f94714
Moved _glapi_check_multithread() call into drivers, instead of in
...
_mesa_make_current().
This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa.
2006-03-16 18:05:25 +00:00
Brian Paul
ef8653a838
finish up some loose ends in _mesa_texstore_z24_s8()
2006-03-16 04:44:00 +00:00
Brian Paul
514a15cea1
assorted code clean-ups, comments, etc.
2006-03-15 20:56:22 +00:00
Brian Paul
ac8b07b3ae
remove invalid assertion in _glapi_get_dispatch(), fixes additional thread safety problem
2006-03-15 20:42:00 +00:00
Brian Paul
e660690985
Need to include glthread.h in glapi.h, not glapi.c so that GET_CURRENT_CONTEXT
...
is properly defined. Fixes long-standing, but unnoticed thread safety failure.
Also, updated comments.
2006-03-15 20:31:50 +00:00
Brian Paul
30655c211c
updated some printfs, added comment about sched_yield
2006-03-15 20:30:17 +00:00
Brian Paul
59e0faaa5c
sync with texmem branch
2006-03-15 17:48:00 +00:00
Brian Paul
eccb6a0698
rename enums, fixes compilation breakage (Michal Krol)
2006-03-15 14:09:08 +00:00
Brian Paul
10f08cc202
use 'p' key to toggle use of GL_EXT_packed_depth_stencil
2006-03-15 01:44:03 +00:00
Brian Paul
b7e3e0d64e
s/GLuint/GLushort/ in read_depth_stencil_image()
2006-03-15 01:36:52 +00:00
Brian Paul
19b8322169
init Red/Green/EtcBits = 0 in soft_renderbuffer_storage()
2006-03-14 22:39:43 +00:00
Brian Paul
2a0d441ebb
Set always_array=true for glGenProgramsNV (Dave Reveman)
2006-03-14 15:41:53 +00:00
Brian Paul
15e74a6441
replace dprintf() with _glu_dprintf() (bug 6244)
2006-03-14 15:08:52 +00:00
Michal Krol
0f618b7eb7
Add slang_analyse.c and slang_library_texsample.c.
2006-03-14 11:39:58 +00:00
Michal Krol
8af48fc4d6
More GLSL code:
...
- add texture sampling support;
- fix assembly codegen bugs;
2006-03-14 11:23:16 +00:00
Aapo Tahkola
e9484e4085
Clean build.
2006-03-13 20:40:46 +00:00
Aapo Tahkola
a0cf4ceb36
Fix broken max mipmap leveling that was horribly wrong.
2006-03-13 18:23:19 +00:00
Aapo Tahkola
5042778449
Option to init vp temps(for testing)
2006-03-10 05:30:33 +00:00
Brian Paul
9c32af5bb2
Add prototypes for GLX_MESA_swap_frame_usage, GLX_MESA_swap_control, and
...
GLX_EXT_texture_from_pixmap to silence warnings while compiling glxcmds.c
XXX: Need to add the new tokens for GLX_EXT_texture_from_pixmap!!!
2006-03-09 16:27:35 +00:00
Brian Paul
841a823d6d
s/GLint/int/, to fit GLX conventions
2006-03-09 16:25:46 +00:00
Brian Paul
0d57301ba2
Instead of adding extra flags to DEFINES with +=, define EXTRA_DEFINES instead.
...
This eliminates a bunch of duplication in the compilation commmands.
2006-03-09 16:24:46 +00:00
Aapo Tahkola
12d51beb7e
Kick VBOs out of GART if nothing else helps.
2006-03-09 06:21:17 +00:00
Aapo Tahkola
e294d938f2
Use the force Luke, use the force.
2006-03-09 04:42:45 +00:00
Dave Airlie
f1b431b265
coverity check bug fix going over end of array
2006-03-08 05:44:07 +00:00
Dave Airlie
9fc897af7a
coverity checker bug: Pointer dereferenced after NULL check
2006-03-08 05:37:58 +00:00
Aapo Tahkola
d97ab9a7bd
Fix broken DrawElements & DrawRangeElements.
2006-03-07 22:46:52 +00:00
Jouk Jansen
d9894e0d72
Committing in .
...
Update OpenVMS makefiles
Modified Files:
Mesa/src/mesa/shader/slang/descrip.mms
Mesa/src/mesa/swrast/descrip.mms
----------------------------------------------------------------------
2006-03-07 07:47:37 +00:00
Aapo Tahkola
dba9c0bafd
Enable HW VBOs and other things needed by it.
2006-03-07 05:31:36 +00:00
Aapo Tahkola
ba7ea2e697
Convert to work with current DRM. + tag
2006-03-07 05:15:24 +00:00
Aapo Tahkola
50f319242b
Various fallbacks, checks and tags.
2006-03-07 05:09:48 +00:00
Brian Paul
ca007cb449
just a comment for check_compatible()
2006-03-07 03:01:26 +00:00
Brian Paul
d75963d258
disable double-buffer test in check_compatible(), fixes pbuffer/visual problem
2006-03-07 02:57:04 +00:00
Brian Paul
8ee311d36d
print newline in _mesa_warning()
2006-03-07 01:46:26 +00:00
Brian Paul
2e01918b55
call _mesa_update_framebuffer_visual() in _mesa_FramebufferRenderbufferEXT() to fix some minor glitches
2006-03-07 01:43:52 +00:00
Brian Paul
168a7516b1
FreeBSD updates (Pedro Giffuni)
2006-03-07 01:11:05 +00:00
Aapo Tahkola
c107058e7e
Port r200 tex tiling code to run on r300 but keep it disabled.
2006-03-06 19:28:10 +00:00
Ian Romanick
3bca4f679a
Later versions of Python handle formats like '% 5u' differently. For
...
whatever reason, a space is always inserted. That is not the desired
behavior.
2006-03-06 18:31:50 +00:00
Ian Romanick
9d881ea718
Generate server-side GLX protocol decode functions using the 'make server'
...
target. The environment variable XORG_BASE must be set to point to the base
of the X.org server sources where the files are to be placed.
The 7.0.0 server release already contains files generated by these scripts.
The scripts should have been committed months ago. Sorry for the lag. :(
2006-03-06 18:30:17 +00:00
Ian Romanick
448d23331d
Display the correct bug number in the information text.
2006-03-06 16:42:12 +00:00
Ian Romanick
66df1731e6
Don't try to bind to proxy texture target. This is defined by the spec to be
...
an error. Since we're working with a proxy target, don't bother using real
texture data.
Add a missing new-line in an error printf.
2006-03-06 16:31:50 +00:00
Ian Romanick
5820f7998a
Build test for bugzilla #3050
2006-03-04 04:46:10 +00:00
Ian Romanick
780d270312
Test case for bugzilla #3050 .
2006-03-04 04:44:47 +00:00
Roland Scheidegger
e1e03b32ab
Use standard ARB names instead of vendor-specific NV names for the ARB/NV_vertex_program enums in common state handling code, and update comments accordingly. Change some slightly confusing code which gave the impression GL_VERTEX_PROGRAM_ARB and GL_VERTEX_PROGRAM_NV enums were different.
2006-03-03 15:03:04 +00:00
Roland Scheidegger
f8ba07a77d
fix up the emit_func list in the experimental arbprogram sse code.
2006-03-03 14:11:19 +00:00
Roland Scheidegger
5e01f9a114
Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel was later discarded by z test (this fixes doom3 r200 renderpath with swrast). Fix calling _swrast_alpha_test potentially leading to bogus results when Alpha Test might not be enabled. While here, don't disable deferred_texture (early z) when ATI_fragment_shader is active, as it is not necessary (for the record, this boosts doom3 swrast performance by roughly a factor of 2 (4 seconds per frame now...) with the r200 render path, might be a worthwile optimization for fragment programs which don't write z).
2006-03-03 02:46:03 +00:00
Keith Whitwell
f4ab5654d0
Add position_invarient support
2006-03-02 20:16:34 +00:00
Roland Scheidegger
da16813f43
Fix more enums defined not only by one extension when queried by glGet (GL_COLOR_SUM_EXT, GL_POINT_SPRITE_NV, GL_POINT_SPRITE_COORD_ORIGIN, GL_TRANSPOSE_CURRENT_MATRIX_ARB). Fix similar bugs (also those previously overseen dependant on NV/ARB_vertex_program) in glIsEnabled. Add missing GL_COLOR_SUM_EXT enum to glIsEnabled.
2006-03-02 12:06:57 +00:00
Brian Paul
9227bca103
added GL_EXT_framebuffer_blit, etc
2006-03-02 04:12:34 +00:00
Brian Paul
81b8aa9ecd
test glBlitFramebufferEXT w/ -blit flag
2006-03-02 03:54:14 +00:00
Brian Paul
14d3ab9662
improved error msg
2006-03-02 03:51:04 +00:00
Brian Paul
904ab0c22c
check FEATURE_EXT_framebuffer_blit
2006-03-02 03:46:33 +00:00
Brian Paul
afa1df5871
plug in BlitFramebuffer function
2006-03-02 03:45:28 +00:00
Brian Paul
c241d3b06a
implementation of _swrast_BlitFramebuffer()
2006-03-02 03:37:18 +00:00
Roland Scheidegger
93da673904
Fix glGet with enums which are used not only in NV_vertex_program, but other extensions too (ARB_vertex_program, ARB_fragment_program, NV_fragment_program), if no support for NV_vertex_program is present. While here, fix return value if enum is used which is not supported by the exposed extensions (GL_INVALID_ENUM instead of GL_INVALID_VALUE). Fix some compile-time #ifs depending on NV_vertex/fragment_program which should also be dependant on ARB_vertex/fragment_program. See bug #6070
2006-03-01 23:11:14 +00:00
Brian Paul
cf6be2d5bd
No need for _mesa_save_error() to be public.
...
glVertexAttrib() w/ bad index should generate GL_INVALID_VALUE, not
GL_INVALID_ENUM.
Misc clean-ups.
2006-03-01 15:44:20 +00:00
Brian Paul
dbfd246db8
added BlitFramebuffer() support
2006-03-01 15:36:34 +00:00
Brian Paul
190e5595bc
New comments. Use tuples () instead of lists [] in a few places.
2006-03-01 15:33:56 +00:00
Brian Paul
68edf28df6
added Flush in glXCopyContext()
2006-03-01 15:32:38 +00:00
Brian Paul
9b8059e536
updated comment
2006-03-01 02:09:40 +00:00
Brian Paul
6d4284e2bf
Added glBlitFramebufferEXT function.
2006-03-01 02:07:50 +00:00
Brian Paul
9974540c73
remove temporary tokens, more error checks for blit function
2006-03-01 02:02:43 +00:00
Brian Paul
2c61fdafd6
added s_blit.c
2006-03-01 02:00:58 +00:00
Brian Paul
1eca891dbe
_swrast_blit_framebuffer() function
2006-03-01 01:57:30 +00:00
Brian Paul
a231097609
GL_EXT_framebuffer_blit tokens/functions
2006-03-01 01:54:59 +00:00
Aapo Tahkola
fbe48ef01f
Free temps when possible
2006-02-28 23:39:32 +00:00
Aapo Tahkola
71932ef85c
Dont let (possibly) undefined z component reach hw as its unused
2006-02-28 23:22:48 +00:00
Aapo Tahkola
6754e17138
No need to call *_FIREVERTICES twice.
2006-02-28 23:17:00 +00:00
Aapo Tahkola
f71fd439f5
Fix aliasing bug (Benjamin Herrenschmidt)
2006-02-28 23:08:28 +00:00
Brian Paul
147f5091a1
Allow error checking to look for presence of either of two extensions.
...
See bug 6070.
2006-02-28 21:45:09 +00:00
Brian Paul
176dac684a
only run shader on active fragments in the span
2006-02-28 15:48:43 +00:00
Brian Paul
34b60b001d
check if active fragment shader for deferred texturing/shading
2006-02-28 15:48:19 +00:00
Brian Paul
3073cf21d2
check for active shader, set FRAGPROG_BIT in raster mask
2006-02-28 15:44:33 +00:00
Brian Paul
d1d4121682
silence a bunch of warnings
2006-02-27 15:45:38 +00:00
Michal Krol
9ac9605de1
More GLSL code:
...
- add x86 code generator;
- add full support for uniforms in ARB_shader_objects;
- add assembly instruction: global_addr;
- reorganize #includes;
- built-in uniforms accessed by index, rather than by name;
- add some entries to x86sse rtasm;
- add configurations to VC6 projects: 'Release x86' and 'Debug x86';
- #define SLANG_X86 active only on VC6 x86 builds;
- introduce code export table for a shader;
- remove GNU license from the noise library;
2006-02-27 14:41:41 +00:00
Brian Paul
c56f2c49a5
re-formated with indent.
2006-02-26 18:18:12 +00:00
Brian Paul
be42f53020
Remove need to initialize the InstSize[] array elements by just storing
...
the instruction size in _mesa_alloc_instruction().
2006-02-26 18:02:13 +00:00
Brian Paul
a764b7eae0
display list clean-ups
2006-02-26 17:16:37 +00:00
Roland Scheidegger
4e77669926
Add all pci ids known by ddx to radeon dri driver. Remove the entries not known by ddx (probably secondary ids, non-existant cards and similar). Add rs400 to the family enum, and configure the rv410 like a 2 quad chip (?)
2006-02-25 02:03:12 +00:00
Brian Paul
2aabdc743f
fix broken _mesa_copy_context() for GL_LIGHTING_BIT
2006-02-24 18:19:11 +00:00
Brian Paul
ee2339f673
need to check for _NEW_BUFFERS in xmesa_update_state()
2006-02-24 17:58:48 +00:00
Brian Paul
228d4a6de7
Fix _mesa_copy_texture_state() so that we copy texture object bindings,
...
not the actual contents of texture objects. This makes glXCopyContext()
work properly.
2006-02-24 17:16:57 +00:00
Brian Paul
1aad408b5a
EXT_framebuffer_object (Dave Reveman)
2006-02-24 15:36:24 +00:00
Brian Paul
44a2e96729
include inttypes.h if __osf__ defined (Randall Hand)
2006-02-23 15:36:39 +00:00
Brian Paul
5b2ee9c1e9
update Blender link
2006-02-23 14:29:03 +00:00
Brian Paul
956fff6345
add some #includes, fix some prototypes (bug 5992)
2006-02-22 16:54:05 +00:00
Brian Paul
7b6fd8a0c6
include proper header file, remove local extern declarations
2006-02-22 16:44:04 +00:00
Brian Paul
cebad151a1
add missing prototypes, use _slang_ prefix on non-static functions
2006-02-22 16:43:26 +00:00
Brian Paul
4f8b59d59b
silence a variety of compiler warnings
2006-02-22 16:35:34 +00:00
Brian Paul
49ad2d4ed1
updated GLUT link
2006-02-22 15:50:57 +00:00
Michal Krol
cc1591667d
More GLSL code:
...
- uniforms (only GetLocation, Uniform1f and Uniform4fv for now for demos);
- fix bugs and optimize array size handling;
- 2D texture sampling (needs Enable(TEXTURE_2D) to work);
- decrease built-in library assembly size by 30%.
2006-02-21 12:35:06 +00:00
Jouk Jansen
8986e36f36
Committing in .
...
Update OpenVMS makefiles
Modified Files:
Mesa/src/mesa/shader/slang/descrip.mms
Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms
----------------------------------------------------------------------
2006-02-21 12:28:34 +00:00
Jeremy Kolb
fcbbdf9991
Added xcb dri config file.
2006-02-19 22:31:26 +00:00
Jeremy Kolb
97a3023c9f
Remove old linux-x86-xcb (didn't do anything).
...
Removed reference to linux-x86-xcb and added linux-dri-xcb in Makefile.
2006-02-19 22:30:46 +00:00
Michal Krol
3654193a4d
More GLSL code.
...
- general constructors allowed;
- implement noise functions (from Stefan Gustavson - thanks!)
- cosmetic stuff.
2006-02-18 15:11:18 +00:00
Keith Whitwell
e94be8d5c0
Fix STENCIL_WRITE_MASK defn for bug 5902
2006-02-17 17:03:14 +00:00
Aapo Tahkola
8da9f448f4
Skip ARL while we dont implement it. Fix broken nv vps but do it with software for now.
2006-02-16 19:50:40 +00:00
Roland Scheidegger
555b5fac4f
Reinstate vertex format after a rasterization fallback for both r200 and radeon driver when a tcl fallback is active, fixes a blender issue with non-tcl hw (bug #5601 )
2006-02-16 17:16:33 +00:00
Eric Anholt
a176bc6c17
Include dix-config.h if HAVE_DIX_CONFIG_H is defined. This will be used by the
...
X Server to get things like _XSERVER64 (for X headers) and NO_LIBCWRAPPER
defined consistently when its builds Mesa internally.
2006-02-15 21:03:34 +00:00
Brian Paul
ee40c4fb34
Set NumInstructions (bug 5864)
2006-02-15 15:59:37 +00:00
Brian Paul
a584e846d4
Fix a few warnings:
...
- nested comments (use #if 0 / #endif instead)
- missing default clause in switch statements
- use of possibly undefined variables
2006-02-15 15:51:01 +00:00
Michal Krol
dd02edf381
Add support for forward function declarations.
2006-02-15 11:15:16 +00:00
Michal Krol
88d994c3b2
Add fragment shader execute entry.
2006-02-15 11:12:47 +00:00
Michal Krol
50092f8f33
Add s_arbshader.c, s_arbshader.h.
2006-02-15 11:09:26 +00:00
Michal Krol
870ebefb3b
Add swrast/s_arbshader.c.
2006-02-15 11:07:56 +00:00
Michal Krol
a663931204
Add arbshader stage.
2006-02-15 11:06:00 +00:00
Michal Krol
5bc35a823a
Enable texcoords when program object in use.
2006-02-15 11:03:57 +00:00
Michal Krol
dc3a922cf3
Get arbfslight demo running.
2006-02-15 11:02:07 +00:00
Michal Krol
0c8e578a38
Enable GL_ARB_fragment_shader extension.
2006-02-15 11:00:15 +00:00
Michal Krol
3699751b0b
Demonstrate GLSL fragment and vertex shaders.
2006-02-15 10:58:52 +00:00
Brian Paul
d5aca8bf0c
remove stray 'foo' line
2006-02-15 04:10:55 +00:00
Brian Paul
0c1438d331
replace size_t * w/ unsigned int * (Jurg Billeter)
2006-02-14 15:04:45 +00:00
Brian Paul
a5033a0421
fix AIX issues (bug 5874)
2006-02-14 14:57:04 +00:00
Jouk Jansen
2189d9c96e
Update OpenVMS compile support
2006-02-13 12:00:29 +00:00
Michal Krol
e7ffe4619f
More glsl code.
2006-02-13 11:47:41 +00:00
Michal Krol
8a54fad6cd
REVISION 3.
...
Remove illegal operators for overloading.
2006-02-13 11:45:57 +00:00
Michal Krol
ebcbf2f853
Cosmetic changes.
2006-02-13 11:42:48 +00:00
Michal Krol
41eeae5fb1
Delete most of the comments.
...
Minor tweaks with the functions.
Add experimental print functions.
2006-02-13 11:40:32 +00:00
Michal Krol
02eb9acc5e
Get it running for ARB_vertex_shader.
...
Add experimental print functions to builtin library.
Some functionality missing:
- automatic arrays;
- general constructors;
- local variable initialization;
- texture sampling and noise;
- semantic error checking;
- function prototypes.
2006-02-13 11:38:37 +00:00
Michal Krol
44e9ccc708
Rename current_program to CurrentProgram.
...
Temporary vertex_shader execution code.
2006-02-13 11:31:16 +00:00
Michal Krol
adef42c88d
Add tnl\t_vb_arbshader.c.
2006-02-13 11:27:33 +00:00
Michal Krol
7d376c76c9
Add tnl/t_vb_arbshader.c.
2006-02-13 11:25:43 +00:00
Michal Krol
a2ea606377
Add ARB_vertex_shader stage just before render stage.
...
If enabled, all other stages, except render, are disabled.
2006-02-13 11:23:36 +00:00
Michal Krol
2363fff347
Enable GL_ARB_shader_objects, GL_ARB_shading_language_100 and
...
GL_ARB_vertex_shader extensions.
2006-02-13 11:04:27 +00:00
Michal Krol
c92e688e15
Rename current glsl program variable.
2006-02-13 10:56:54 +00:00
Michal Krol
170f08d4b1
Add _mesa_atanf and _mesa_asinf functions.
2006-02-13 10:55:14 +00:00
Eric Anholt
91c30771b6
Add the ability to define NO_LIBCWRAPPER to avoid libcwrapper brain damage.
...
If it's true that libcwrapper usage isn't necessary ever in the DllLoader world,
then this code should probbaly all go away.
2006-02-11 02:59:38 +00:00
Dave Airlie
f236300e3a
commit to fixup MGL namespacing for XGL
2006-02-10 21:46:17 +00:00
Aapo Tahkola
a73094cc6a
Workaround problems with NWN. (Tilman Sauerbeck)
2006-02-10 17:26:44 +00:00
Brian Paul
42447365b2
remove the test for XFree86Server from prev patch (bug 5835)
2006-02-09 14:28:40 +00:00
Alan Hourihane
b77a225250
Check DDX for 1.5.0
2006-02-08 22:05:42 +00:00
Brian Paul
d93615fc1e
include dix-config.h (Mike Harris) (bug 5835)
2006-02-08 14:52:06 +00:00
Brian Paul
42725d6f54
David Reveman's GLX_EXT_texture_from_pixmap extension patch
2006-02-07 00:39:56 +00:00
Dave Airlie
4cd0e24f86
add vblank support to i915 driver
2006-02-06 00:09:58 +00:00
Brian Paul
640ef7f890
EGL 1.2 tokens/functions/etc.
2006-02-05 16:39:19 +00:00
Brian Paul
63b852f4f9
fix typo
2006-02-05 16:38:33 +00:00
Brian Paul
ea970da0b6
bring in changes from 6.4 branch
2006-02-03 17:21:54 +00:00
Roland Scheidegger
e7276b7fa5
replace the texture level hack used in radeon/r200 to allow larger textures with different methods to calculate the announced maximum texture sizes. Default is still the same (that is, radeon/r200 default to not announce anything which might not fit, i830/i915 default to 1 texture must fit). Bug #5785 .
2006-02-03 13:29:11 +00:00
Brian Paul
16a14510c4
use calloc instead of malloc so try_codegen field is initialized to zero (bug 5791)
2006-02-02 17:33:26 +00:00
Brian Paul
725740c7c8
add some assertions to check emit_func[] table validity
2006-02-02 14:30:16 +00:00
Roland Scheidegger
5951aab823
fix texcoord unit assertion, the right one (bug 5780)
2006-02-01 23:14:42 +00:00
Brian Paul
865ad82bb8
fix texcoord unit assertion (bug 5780)
2006-02-01 16:50:16 +00:00
Roland Scheidegger
3b6f62fc73
fix test for valid texunit in _mesa_ClientActiveTextureARB
2006-02-01 01:05:40 +00:00
Brian Paul
111281f1fc
s/malloc/calloc/, fix mem leak
2006-01-31 03:00:14 +00:00
Roland Scheidegger
663138a951
fix broken assertions so dri drivers compile with -DDEBUG (replace GL_STENCIL_INDEX8 with GL_STENCIL_INDEX8_EXT). Fix potential problem with drivers which use 32bit z buffers.
2006-01-30 23:49:31 +00:00
Roland Scheidegger
a45f23bed1
fix broken assertion to make radeon driver compile with -DDEBUG...
2006-01-30 23:36:42 +00:00
Brian Paul
4b4cc650e1
updated comment
2006-01-30 17:13:19 +00:00
Brian Paul
781c54a5b8
silence warning about duplicate M_PI definition
2006-01-30 17:12:10 +00:00
Brian Paul
6a36407a00
added more tests (Pedro Maia)
2006-01-30 17:11:47 +00:00
Brian Paul
7905b19ec9
use fmod() when incrementing CubeRot
2006-01-30 15:35:35 +00:00
Michal Krol
bd8c742762
Add shader/slang/slang_compile_*.* files.
2006-01-30 14:50:01 +00:00
Michal Krol
9dc8bce88e
Split slang_compile.c into several smaller files - it was just too big.
...
Minor fixes and cosmetic changes.
2006-01-30 14:48:42 +00:00
Brian Paul
b2006a40eb
some initial EGL 1.2 work
2006-01-30 00:10:55 +00:00
Brian Paul
daf3093f28
Test glCopyTexSubImage2D by drawing gears as texture on sides of a box.
2006-01-28 00:30:07 +00:00
Brian Paul
5e9d73153c
misc updates
2006-01-27 20:12:06 +00:00
Brian Paul
0b3c2a9a24
Don't do swapbuffers if -nodraw specified. Get t0 after setup code.
2006-01-27 15:44:40 +00:00
Aapo Tahkola
5594ddbcfe
remove broken non arb fp path
2006-01-27 14:35:24 +00:00
Aapo Tahkola
58e4aa0ec9
missing link in the fallback chain
2006-01-27 14:09:05 +00:00
Aapo Tahkola
0fcfa1c5b0
enable hw vertex programs by default
2006-01-27 14:03:22 +00:00
Aapo Tahkola
e797bc8bbe
per vp sw fallbacks
2006-01-27 13:21:47 +00:00
Aapo Tahkola
7d82d284e3
radeon driver doesnt have this so i assume we shouldnt either.
2006-01-27 13:09:59 +00:00
Aapo Tahkola
a7bd2563c3
drop all that (slow) locking stuff and make u_list per context.
2006-01-27 13:05:56 +00:00
Aapo Tahkola
875df252a7
R300_PFS_NODE_LAST_NODE -> R300_PFS_NODE_OUTPUT_COLOR
2006-01-27 12:38:20 +00:00
Aapo Tahkola
e804370014
Work around problems with t_vp_build.c
2006-01-27 12:23:26 +00:00
Aapo Tahkola
32551222bc
r300UpdateTextureEnv shouldnt be called.
2006-01-27 12:18:58 +00:00
Brian Paul
77667266a7
Test glTexSubImage and glCopyTexSubImage rate.
...
Run with -nodraw to skip rendering of test quad to get "pure" sub-tex rate.
2006-01-26 17:35:31 +00:00
Brian Paul
32a6468014
copypixrate.c - measure the speed of glCopyPixels.
2006-01-26 16:37:47 +00:00
Aapo Tahkola
e65ad47a8f
remove some testing code
2006-01-26 16:28:54 +00:00
Aapo Tahkola
edc98df891
Fix a problem where offsets from disabled tmus reach drm
2006-01-26 15:53:18 +00:00
Alan Hourihane
fbcb37cac5
remove i830
2006-01-26 08:53:32 +00:00
Brian Paul
3a5bb1729d
New comments, clean-up of fields related to point/line/triangle validation.
2006-01-26 01:32:47 +00:00
Brian Paul
2219a15b06
remove unneeded init of swrast->invalidate_line/triangle
2006-01-26 01:28:00 +00:00
Brian Paul
74235b1cf1
remove the GL_HP_occlusion_test code
2006-01-26 01:27:17 +00:00
Brian Paul
f3cf636e57
WGL_ARB_extensions_string extension
2006-01-25 17:33:13 +00:00
Brian Paul
166b0ff973
added wglGetExtensionsStringARB
2006-01-25 15:05:36 +00:00
Karl Schultz
7f1274fa8b
add wglGetExtensionsStringARB
2006-01-25 06:02:55 +00:00
Jerome Glisse
99da2d30eb
fix using a tmp without asking for one
2006-01-24 23:04:51 +00:00
Alan Hourihane
8b1dc68662
pull in fix from 6.4 branch for XFree86Server definition
2006-01-24 21:40:53 +00:00
Aapo Tahkola
4dd8a8907e
fix broken get_half & get_zero
2006-01-24 20:24:06 +00:00
Alan Hourihane
65573edd1b
remove very old i830 code
2006-01-24 19:59:54 +00:00
Alan Hourihane
f3134ca7ad
use front.size instead of sPriv->fbSize
2006-01-24 19:40:26 +00:00
Alan Hourihane
f7360cd42d
use screen->front.map instead of pFB from libdri
2006-01-24 19:28:49 +00:00
Alan Hourihane
39c492bb14
Add Intel 945GM support
...
Add rotation support
(Tungsten Graphics)
2006-01-23 10:10:48 +00:00
Jerome Glisse
acd1f16b35
Do individual negetation in swizzling, thus we can
...
save one instruction in some case.
2006-01-21 15:16:53 +00:00
Jerome Glisse
c6f35dd8db
Indent & wrap around 80
2006-01-21 13:08:46 +00:00
Aapo Tahkola
f087d60f18
Doesnt apply anymore
2006-01-21 12:48:09 +00:00
Jerome Glisse
41a874f486
Add individual component negation.
2006-01-21 11:43:37 +00:00
Aapo Tahkola
ef073b7a75
Try to tackle bug #5148
2006-01-20 21:56:52 +00:00
Aapo Tahkola
c90b569238
Sync from drm.
2006-01-20 21:16:28 +00:00
Aapo Tahkola
93a7605b1d
Fix ARGB1555 component swizzling.
2006-01-20 20:48:05 +00:00
Jerome Glisse
b42d5bcaff
Fix swizzling table & add struct.
2006-01-20 18:24:44 +00:00
Adam Jackson
37e86254c1
Avoid a crash when the user has enabled glVertex{,Attrib}Pointer but hasn't
...
filled in a valid pointer for that attribute or vertex array.
2006-01-19 18:00:38 +00:00
Adam Jackson
216f729a95
Search for makedepend in the PATH rather than hardcoding /usr/X11R6/bin
2006-01-18 20:57:02 +00:00
Adam Jackson
38da697546
Nuke the old attempt at software DRI, it's broken and awful
2006-01-18 00:29:35 +00:00
Adam Jackson
f93a228c38
Start a software-only DRI driver for use in the new accelerated indirect
...
world.
2006-01-18 00:22:21 +00:00
Brian Paul
1096eae18d
properly free ATI fragment shaders (Tilman Sauerbeck)
2006-01-16 16:35:13 +00:00
Brian Paul
361bccb4ec
Free visinfo object (Tilman Sauerbeck)
2006-01-16 16:17:18 +00:00