Commit Graph

24217 Commits

Author SHA1 Message Date
Brian Paul e36751ec81 mesa: remove a bit of old code 2009-11-17 16:16:30 -07:00
Maciej Cencora afe84fa698 r200: align for mipmap tree changes 2009-11-17 19:46:59 +01:00
Maciej Cencora 93eb2ab8c3 radeon: align for mipmap tree changes 2009-11-17 19:46:37 +01:00
Jakob Bornecrantz 46492f11f6 svga: More -Werror removal 2009-11-17 12:09:19 +01:00
Jakob Bornecrantz 8c5a108dc3 svga: Remove -Werror for now as GCC 4.4.x raises a bunch of warnings 2009-11-17 11:24:39 +01:00
Maciej Cencora aef769207d r300: fix reads and writes for MESA_FORMAT_S8Z24 buffer
Regression was introduced by texformat-rework branch merge.
2009-11-17 13:40:43 -07:00
Patrice Mandin b353106467 nouveau: nv30: Check for NULL front (happens with DRI2) 2009-11-17 19:50:37 +01:00
Patrice Mandin 49289f1d25 nouveau: nv30: Add missing include to fix warning 2009-11-17 19:49:56 +01:00
Michel Dänzer 52be96b7fe Remove unconditional use of glibc specific bswap_16() macro.
Fixes unresolved symbol bswap_16 on non-glibc or little endian glibc platforms.
2009-11-17 19:41:29 +01:00
Dan Nicholson cf65d81cf1 dri: Ensure subdirs have finished before linking driver
Recursive make is hard. If there are subdirectories in the DRI drivers,
it's pretty certain we want to finish building in them before linking
the driver. Add a new target to serialize the rules.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-11-17 11:23:19 -07:00
Michel Dänzer 33e93f4277 r600: More span breakage fixes.
At least now the compiler doesn't complain about implicitly declared functions
anymore...
2009-11-17 19:02:03 +01:00
Michel Dänzer 29f3e7e1d1 r600: Attempt to fix span breakage introduced by big endian fixes.
Only compile tested; I happened to notice people on IRC reporting

.../r600_dri.so: undefined symbol: radeon_ptr_2byte_8x2
2009-11-17 18:47:24 +01:00
Michel Dänzer 081bf9563f radeon: Depth/stencil span code fixes for big endian.
Fixes e.g. text in progs/demos/arbocclude.
2009-11-17 11:09:09 +01:00
Michel Dänzer 592ce48ce9 radeon: Fix occlusion queries on big endian. 2009-11-17 11:08:21 +01:00
Michel Dänzer 2262765425 radeon: Fix software fallbacks with KMS on big endian. 2009-11-17 08:05:23 +01:00
Michel Dänzer f2651264d3 radeon: FBO fixes for big endian. 2009-11-17 08:05:22 +01:00
Michel Dänzer 2d0c295256 Add MESA_FORMAT_XRGB8888_REV. 2009-11-17 08:05:22 +01:00
Dave Airlie e015a4c29b radeon: rn50's have no 3D engine so don't try and init 3D driver. 2009-11-17 16:06:26 +10:00
Jakob Bornecrantz 60769b232c svga: Build svga driver 2009-11-17 03:18:06 +01:00
Jakob Bornecrantz f7109aaf6c svga: Add vmwgfx_drm.h file from vmwgfx kernel driver
Add the vmwgfx_drm.h header for now, this allows the svga driver
to be enabled by default without forcing people to install the
vmwgfx_drm.h header on their system.

To be removed once vmwgfx_drm.h is in libdrm.
2009-11-17 03:18:05 +01:00
Jakob Bornecrantz 3192633d4a svga: Add svga driver 2009-11-17 03:18:04 +01:00
Jakob Bornecrantz 648e8b4c46 st/xorg: Fix copy-pasto
Thanks Alan.
2009-11-17 01:48:53 +01:00
Ian Romanick fdfbae3381 i965: Use MESA_FORMAT_AL1616 when appropriate 2009-11-16 15:23:17 -08:00
Ian Romanick b1616b2a81 Move 'static' to start of declaration to silence compiler warning 2009-11-16 15:23:16 -08:00
Ian Romanick 12982e381d AL1616: Enable MESA_FORMAT_AL1616 for software paths 2009-11-16 15:23:16 -08:00
Ian Romanick 3325dc91be AL1616: Add TexImage storage path 2009-11-16 15:23:16 -08:00
Ian Romanick 975871b4d5 AL1616: Add texel fetch / store routines 2009-11-16 15:23:16 -08:00
Ian Romanick eb437fabe0 AL1616: Add formats for GL_LUMINANCE16_ALPHA16 textures 2009-11-16 15:23:16 -08:00
Ian Romanick 5fb07a4046 AL1616: Add macros to pack two GLushorts into a texel 2009-11-16 15:23:16 -08:00
Jakob Bornecrantz cb060f3b98 st/xorg: Fix comp alpha code and deal with luminance masks
There are two fixes in here one is a one liner that fixes
component alpha logic. The other deals better with luminance
formats used for masks, sources not yet implemented.

Fixes component alpha text and icons in gnome. There are a one
or two cases that this code misses. Like if src_luminance is set
but no mask image is given.
2009-11-16 23:33:45 +01:00
Jakob Bornecrantz 5438ee3ecf st/xorg: Incase of format missmatch swizzle channels and set alpha
This path is only hit for icons in gnome so far
2009-11-16 23:33:44 +01:00
Alex Deucher d683acb101 r600: don't force Z order
Let the hw decide (early vs late Z)
fixes fdo bug 25092

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-16 15:03:48 -05:00
Brian Paul f549f4c4b6 mesa: remove unused vertex array driver hooks 2009-11-16 11:33:44 -07:00
Brian Paul 652828ec0e mesa: check BaseLevel, MaxLevel in _mesa_GenerateMipmapEXT() 2009-11-16 08:25:17 -07:00
Brian Paul a719395b45 mesa: use _mesa_get_current_tex_object() 2009-11-16 08:21:28 -07:00
Brian Paul ecb03d75a2 mesa: added another check in check_gen_mipmap()
We don't need to call ctx->Driver.GenerateMipmap() if we're updating
a texture level >= MAX_LEVEL.
2009-11-16 08:18:03 -07:00
Michel Dänzer d3a37d93ab st/xorg: Only reference new picture formats when they're defined.
Fixes http://bugs.freedesktop.org/show_bug.cgi/?id=25094 .
2009-11-16 11:59:39 +01:00
Brian Paul afae49cc15 st/mesa: comments for st_draw.c 2009-11-15 16:22:53 -07:00
Brian Paul 4581f70578 st/egl: add some basic comments 2009-11-15 16:22:52 -07:00
Francisco Jerez abefd7dcdf nv20: Fix build for the last nouveau_class.h changes.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-11-15 18:20:19 +02:00
Francisco Jerez ed9c4933af nv10: Fix build for the last nouveau_class.h changes.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-11-15 18:20:19 +02:00
Maciej Cencora ad83aeccdc radeon: return false on texture validation if texture isn't complete 2009-11-14 18:11:16 +01:00
Maciej Cencora 23ec7c4574 radeon: rework mipmap tree 2009-11-14 16:55:39 +01:00
Maciej Cencora 8f88cf3938 radeon: more texture code refactoring 2009-11-14 16:55:38 +01:00
Maciej Cencora 9d0af686b2 radeon: minor refactoring of texture code
Also properly set dstImageOffsets for TexSubImage case.
2009-11-14 16:55:38 +01:00
Maciej Cencora 7628b06ba3 radeon: rework mipmap tree reference counting 2009-11-14 16:55:34 +01:00
Maciej Cencora 6e5d473cc1 r300: fix regression introduced in 1d5a06a1f7
Spotted by Dave Airlie
2009-11-14 14:43:34 +01:00
Maciej Cencora aa19561158 radeon: use radeon_bo_is_referenced_by_cs for query objects 2009-11-14 14:43:18 +01:00
Maciej Cencora d3fa67c9b8 radeon/r300: don't flush cmdbuf if not necessary 2009-11-14 14:43:10 +01:00
Maciej Cencora 286bf89e5a radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode 2009-11-14 14:42:48 +01:00
Maciej Cencora f6d0993212 radeon: fix glBufferSubData 2009-11-14 14:42:34 +01:00
Maciej Cencora 084f43c150 radeon: add radeon_bo_is_referenced_by_cs function 2009-11-14 14:42:26 +01:00
Maciej Cencora 49876ab6a7 radeon: remove unnecessary call to radeonEmitState
fixes bo space accounting errors
2009-11-14 14:42:19 +01:00
Maciej Cencora 0aad2aee66 r300: add missing texformat 2009-11-14 14:42:10 +01:00
Maciej Cencora e92492295b r300: remove unneeded includes 2009-11-14 14:42:01 +01:00
Eric Anholt 57f40b1837 i965: Share OPCODE_TXB between brw_wm_emit.c and brw_wm_glsl.c
This should fix TXB on G45 and older in the GLSL case.
2009-11-13 16:04:13 -08:00
Eric Anholt 1be0efcbdc i965: Share OPCODE_TEX between brw_wm_emit.c and brw_wm_glsl.c.
New comments should explain some of the confusion about how this message
works.
2009-11-13 16:04:10 -08:00
Eric Anholt a0fd49b334 i965: Clean up emit_tex a bit. 2009-11-13 15:17:24 -08:00
Eric Anholt 3d36d6b4cf Merge remote branch 'origin/mesa_7_6_branch' 2009-11-13 14:45:29 -08:00
Eric Anholt 99077e7792 i965: Flag BRW_NEW_CONTEXT on some context state.
Fixing this is a prereq for avoiding flagging all state at new
batch time.  Eliminating that still causes problems, though (notably
glean logicOp fails on my GM965).
2009-11-13 14:39:09 -08:00
Eric Anholt 1ffd0a7789 intel: Remove some dead context structure fields. 2009-11-13 13:18:57 -08:00
Eric Anholt 3727858ceb i965: Remove an unused cache_item field. 2009-11-13 13:18:57 -08:00
Eric Anholt b54f8eeae8 i965: Remove long dead structures for ffvertex_prog.c. 2009-11-13 13:18:57 -08:00
Eric Anholt ded0ec1ea5 i965: Use bo_map instead of subdata to upload the bits of constant buffer.
Saves CPU time, resulting in a 2.5% FPS win on ETQW.
2009-11-13 13:18:57 -08:00
Eric Anholt 8e8586e626 i965: Validate the number of URB entries selected for the VS. 2009-11-13 13:18:56 -08:00
Eric Anholt 3c05c1eb63 intel: When subdataing a busy buffer, use a temporary and blit in.
This cuts a massive number of waits in ET:QW, which uses a VBO ringbuffer.
Unfortunately it doesn't BufferData when wrapping back to 0, so we can't
be clever with tracking what's been initialized.
2009-11-13 13:18:56 -08:00
Eric Anholt 4e50ce35ee i965: Clean up Ironlake sampler type definitions.
They're the same regardless of execution width for 8, 4x2, and 16.
2009-11-13 13:18:56 -08:00
Eric Anholt 91bd593109 i965: Avoid moving the current value back into the accumulator for MAD.
This is a 2.9% (+/-.3%) performance win for my GL demo, which hits MAD
sequences for matrix transforms.
2009-11-13 13:18:56 -08:00
Eric Anholt d6690ce15f mesa: Improve the eliminate-move-use to work across multiple instructions.
This shaves more instructions off of the VS of my GL demo, but no
performance difference this time at n=6.  This also fixes a regression
that was in this path, which is now piglit's glsl-vs-mov-after-deref.
2009-11-13 13:18:22 -08:00
Zack Rusin 654122ba7b st/xorg: try to fix non-uniform transforms 2009-11-13 14:58:35 -05:00
Ian Romanick b6b753f727 intel: Don't check for context pointer to be NULL during extension init
Thanks to Chia-I Wu's changes to the extension function
infrastructure, we no longer have to tell the loader which extensions
the driver might enable.  This means that intelInitExtensions will
never be called with a NULL context pointer.  Remove all the NULL checks.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2009-11-12 15:43:09 -08:00
Ian Romanick a736d3f439 intel: Remove unused enable_imaging parameter to intelInitExtensions 2009-11-12 15:43:09 -08:00
Eric Anholt 514544f373 i965: Fix Ironlake shadow comparisons.
The cube map array index arg is always present.
2009-11-12 11:41:39 -08:00
Eric Anholt 5f305b1db9 i965: Fix VBO last-valid-offset setup on Ironlake.
Instead of doing math based on the (broken for VBO && offset != 0)
input->count number, just use the BO size.  Fixes assertion failure in ETQW.
2009-11-12 11:41:39 -08:00
Zack Rusin 4d72f8f520 st/xorg: use an immediate instead of a full blown const 2009-11-11 21:47:28 -05:00
Zack Rusin 72b4a7d67f st/xorg: don't use flow control 2009-11-11 21:43:40 -05:00
Brian Paul 0a39620d6d swrast: handle additional Z24 formats in read_depth_pixels() 2009-11-11 19:38:19 -07:00
Roland Scheidegger ab12e764ba i965: fix EXT_provoking_vertex support
This didn't work for quad/quadstrips at all, and for all other primitive types
it only worked when they were unclipped.
Fix up the former in gs stage (could probably do without these changes and
instead set QuadsFollowProvokingVertexConvention to false), and the rest in
clip stage.
2009-11-11 17:57:56 -08:00
Zack Rusin 2cfbbc76e4 st/xorg: implement repeatnone and make some code smell less like ass 2009-11-11 19:55:50 -05:00
Zack Rusin 493d599af4 st/xorg: fallback until daddy can implement you properly 2009-11-11 19:55:50 -05:00
Corbin Simpson cbee31a1f8 r300, r300g: Add missing registers. 2009-11-11 10:24:19 -08:00
Corbin Simpson d030ce6a84 dri-st: Add some required GL 2.0 extensions.
Two-sided stencil and NPOT textures.
2009-11-11 10:24:06 -08:00
Eric Anholt 1220aba99b i965: Fix VS constant buffer value loading.
Previously, we'd load linearly from ParameterValues[0] for the constants,
though ParameterValues[1] may not equal ParameterValues[0] + 4.  Additionally,
the STATE_VAL type paramters didn't get updated.

Fixes piglit vp-constant-array-huge.vpfp and ET:QW object locations.

Bug #23226.
2009-11-10 14:44:40 -08:00
Eric Anholt e5ffb9f5ea i965: Unalias src/dst registers for SGE and friends.
Fixes piglit vp-sge-alias test, and the googleearth ground shader.  \o/

Bug #22228
(cherry picked from commit 56ab92bad8)
2009-11-10 14:44:39 -08:00
Eric Anholt 23a4a6727e i965: Allow use of PROGRAM_LOCAL constants in ARB_vp.
Fixes piglit arl.vp.
(cherry picked from commit d52d78b4bc)
2009-11-10 14:44:39 -08:00
Jakob Bornecrantz e4a19ffb13 st/xorg: Fallback if picture format doesn't match texture format 2009-11-10 10:05:40 +01:00
Jakob Bornecrantz 3201c655e4 st/xorg: Don't segfault when debug printing 2009-11-10 10:00:04 +01:00
Zack Rusin fca8b2c3ae st/xorg: wrap to border color 2009-11-10 20:30:48 -05:00
brian b81f213157 swrast: update renderbuffer format assertions 2009-11-10 18:23:59 -07:00
brian a65b84d955 mesa: fix some begin/end render-to-texture logic
Before, we weren't aggressive enough in checking for the start or end
of render-to-texture.  In particular, if only the ctx->ReadBuffer had
texture attachments, we were treating that as a render-to-texture case.

This fixes a regression from commit 75bdbdd90b
"intel: Don't validate in a texture image used as a render target."
2009-11-10 18:09:13 -07:00
brian bc569cd6be mesa: move check_begin/end_texture_render() calls 2009-11-10 18:09:13 -07:00
brian d96e55fa7b mesa: new vars: oldDrawFb, oldReadFb in _mesa_BindFramebufferEXT() 2009-11-10 18:09:13 -07:00
brian e6f60d3037 mesa: rename vars in _mesa_BindFramebufferEXT() 2009-11-10 18:09:13 -07:00
brian a492ab765a mesa: added comment for check_begin_texture_render() 2009-11-10 18:09:12 -07:00
Jakob Bornecrantz 4c54f8e9aa st/egl: Probe hardware for depth stencil format 2009-11-10 08:29:41 +01:00
Zack Rusin d2c886c8ca st/xorg: cleanup the naming 2009-11-10 19:42:03 -05:00
Zack Rusin e08512f3d4 st/xorg: print ouf the picture formats when compositing 2009-11-10 19:42:02 -05:00
Eric Anholt e42b156fac Merge remote branch 'origin/mesa_7_6_branch' 2009-11-10 16:01:28 -08:00
Eric Anholt c5413839b3 i965: avoid memsetting all the BRW_WM_MAX_INSN arrays for every compile.
For an app that's blowing out the state cache, like sauerbraten, the
memset of the giant arrays ended up taking 11% of the CPU even when only a
"few" of the entries got used.  With this, the WM program compile drops back
down to 1% of CPU time.

Bug #24981 (bisected to BRW_WM_MAX_INSN increase).
2009-11-10 16:00:30 -08:00
Eric Anholt eb6a1f8a00 i965: Add a note explaining the data cache domain. 2009-11-10 16:00:30 -08:00