Brian Paul [Mon, 28 Sep 2009 00:49:14 +0000 (18:49 -0600)]
mesa: rework null texel fetch/store funcs
Brian Paul [Mon, 28 Sep 2009 00:39:48 +0000 (18:39 -0600)]
mesa: replace function pointer types with void *
These fields are no longer used and will be removed soon.
Brian Paul [Mon, 28 Sep 2009 00:39:17 +0000 (18:39 -0600)]
st/mesa: use _mesa_get_texstore_func()
Brian Paul [Mon, 28 Sep 2009 00:38:50 +0000 (18:38 -0600)]
mesa: use _mesa_get_texstore_func()
Brian Paul [Mon, 28 Sep 2009 00:34:12 +0000 (18:34 -0600)]
glide: use _mesa_get_texstore_func()
Brian Paul [Mon, 28 Sep 2009 00:28:48 +0000 (18:28 -0600)]
mesa: NULL-out unused texformat field initializers
Brian Paul [Mon, 28 Sep 2009 00:28:22 +0000 (18:28 -0600)]
mesa: use _mesa_get_texstore_func()
Brian Paul [Mon, 28 Sep 2009 00:27:59 +0000 (18:27 -0600)]
st/mesa: use _mesa_get_texstore_func()
Brian Paul [Mon, 28 Sep 2009 00:19:24 +0000 (18:19 -0600)]
mesa: null-out StoreTexImageFunc fields
Brian Paul [Mon, 28 Sep 2009 00:17:32 +0000 (18:17 -0600)]
mesa: use _mesa_get_texel_store_func()
Brian Paul [Mon, 28 Sep 2009 00:09:23 +0000 (18:09 -0600)]
mesa: use new look-up table to get texel fetch/store funcs
Brian Paul [Mon, 28 Sep 2009 00:08:49 +0000 (18:08 -0600)]
mesa: make some s3tc/fxt1 functions public
Brian Paul [Mon, 28 Sep 2009 00:02:02 +0000 (18:02 -0600)]
progs/tests: disable texturing before printing text
Brian Paul [Sun, 27 Sep 2009 23:07:22 +0000 (17:07 -0600)]
mesa: minor clean-up in _mesa_texstore_srgb8()
Brian Paul [Sun, 27 Sep 2009 23:01:41 +0000 (17:01 -0600)]
mesa: use _mesa_get_texstore_func() to get texture image store func
Brian Paul [Sat, 26 Sep 2009 18:32:13 +0000 (12:32 -0600)]
mesa: move _mesa_get_texstore_func() to texstore.c
Brian Paul [Sat, 26 Sep 2009 18:26:18 +0000 (12:26 -0600)]
mesa: begin removing dependencies on gl_texture_format in texstore code
Brian Paul [Sat, 26 Sep 2009 18:25:02 +0000 (12:25 -0600)]
mesa: added formats.c to build
Brian Paul [Sat, 26 Sep 2009 18:24:17 +0000 (12:24 -0600)]
mesa: include formats.h
Brian Paul [Sat, 26 Sep 2009 18:21:03 +0000 (12:21 -0600)]
mesa: initial check-in of new formats.[ch] files
Dave Airlie [Sat, 26 Sep 2009 09:32:46 +0000 (19:32 +1000)]
r300g: add tx depth support in register.
also enable cube/3d bits in txformat reg
Dave Airlie [Sat, 26 Sep 2009 08:38:39 +0000 (18:38 +1000)]
r300g: only pass complete texture state to hw setup function
No point passing things twice here, also allows more state
to be setup properly.
Dave Airlie [Sat, 26 Sep 2009 08:38:07 +0000 (18:38 +1000)]
r300g: add missing break in OQ emit
José Fonseca [Sat, 26 Sep 2009 08:33:32 +0000 (09:33 +0100)]
llvmpipe: Allow building with LLVM 2.6 too.
Dave Airlie [Sat, 26 Sep 2009 08:25:00 +0000 (18:25 +1000)]
r300g: report GL1.5, enable cap bits for OQ and shadow.
Its not like it works well on 1.3 so may as well reach for greater
heights.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie [Sat, 26 Sep 2009 08:24:34 +0000 (18:24 +1000)]
r300g: add z16 unorm texture format
Dave Airlie [Sat, 26 Sep 2009 06:39:13 +0000 (16:39 +1000)]
r300g: fix texture pitch to correct value.
pitch is pixels - 1, not bytes.
Ian Romanick [Fri, 25 Sep 2009 23:57:38 +0000 (16:57 -0700)]
Merge branch 'asm-shader-rework-2'
Conflicts:
src/mesa/shader/program_parse.tab.c
Michel Dänzer [Fri, 25 Sep 2009 18:49:53 +0000 (20:49 +0200)]
st/xorg: Re-enable accelerated fills and copies.
These seem to work well enough now with the new code. Composite acceleration
isn't quite there yet and thus remains disabled in xorg_composite_bind_state()
for now.
Michel Dänzer [Fri, 25 Sep 2009 18:49:53 +0000 (20:49 +0200)]
st/xorg: Flush render cache if but only if a source has pending write operations.
Michel Dänzer [Fri, 25 Sep 2009 18:49:53 +0000 (20:49 +0200)]
st/xorg: Reject Composite acceleration for some cases not working yet.
Michel Dänzer [Fri, 25 Sep 2009 18:49:00 +0000 (20:49 +0200)]
st/xorg: Make sure struct is fully initialized.
gcc complained about a missing initializer.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Use generic semantic for Composite mask coordinates.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Flesh out EXA PrepareComposite hook a little.
Check that the formats are supported, and don't crash with source-only
pictures.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Use I8 format instead of A8 for depth 8 pixmaps.
Seems to work better for Composite acceleration.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Bind rasterizer state for copies.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Source-only pictures always have format PICT_a8r8g8b8.
See xserver/render/picture.c:createSourcePicture(). This both simplifies the
code and avoids a crash because pFormat is NULL.
Michel Dänzer [Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)]
st/xorg: Better checks for unsupported component alpha pictures.
Michal Krol [Fri, 25 Sep 2009 08:57:33 +0000 (10:57 +0200)]
softpipe: Grab fs output z from the correct file.
Michal Krol [Fri, 25 Sep 2009 08:48:19 +0000 (10:48 +0200)]
softpipe: Do not advertise support for L16 and YCBCR formats.
Michal Krol [Fri, 25 Sep 2009 16:51:55 +0000 (18:51 +0200)]
radeon: Fix newlines.
Brian Paul [Fri, 25 Sep 2009 15:00:19 +0000 (09:00 -0600)]
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/drivers/dri/intel/intel_clear.c
Vinson Lee [Fri, 25 Sep 2009 14:51:57 +0000 (08:51 -0600)]
mesa: move declaration before code
Christoph Bumiller [Fri, 25 Sep 2009 08:53:01 +0000 (10:53 +0200)]
nv50: fix TEX for WriteMask not equal 0xf
If you e.g. only need alpha, it ends up in the first reg,
not the last, as it would when reading rgb too.
Christoph Bumiller [Thu, 24 Sep 2009 15:37:08 +0000 (17:37 +0200)]
nv50: actually enable view volume clipping
Until now, only primitives wholly outside the view volume
were not drawn.
This was only visibile when using a viewport smaller than
the window size, naturally.
Christoph Bumiller [Thu, 24 Sep 2009 15:24:48 +0000 (17:24 +0200)]
nv50: RCP and RSQ cannot load from VP inputs
Christoph Bumiller [Fri, 25 Sep 2009 08:33:02 +0000 (10:33 +0200)]
nv50: fix CEIL and TRUNC
Separated the integer rounding mode flag for cvt.
Christoph Bumiller [Fri, 25 Sep 2009 08:24:40 +0000 (10:24 +0200)]
nv50: implement BGNLOOP, BRK, ENDLOOP
There's a good chance a loop won't execute correctly
though since our TEMP allocation assumes programs to
be executed linearly. Will fix later.
Christoph Bumiller [Thu, 24 Sep 2009 14:39:56 +0000 (16:39 +0200)]
nv50: implement IF, ELSE, ENDIF opcodes
Cooper Yuan [Fri, 25 Sep 2009 07:15:20 +0000 (15:15 +0800)]
r300g: add texture format for xvmc
Chia-I Wu [Wed, 23 Sep 2009 08:56:20 +0000 (16:56 +0800)]
mesa/main: Make FEATURE_convolve follow feature conventions.
As shown in mfeatures.h, this allows users of convolve.h to work without
knowing if the feature is available.
Chia-I Wu [Mon, 7 Sep 2009 09:17:11 +0000 (17:17 +0800)]
mesa/main: Make FEATURE_colortable follow feature conventions.
As shown in mfeatures.h, this allows users of colortab.h to work
without knowing if the feature is available.
Chia-I Wu [Mon, 7 Sep 2009 08:59:27 +0000 (16:59 +0800)]
mesa/main: Make FEATURE_pixel_transfer follow feature conventions.
As shown in mfeatures.h, this allows users of pixel.h to work without
knowing if the feature is available.
Chia-I Wu [Mon, 7 Sep 2009 09:51:33 +0000 (17:51 +0800)]
mesa/main: Add comments to mfeatures.h.
The comments document the conventions that a feature may follow.
Brian Paul [Fri, 25 Sep 2009 01:36:37 +0000 (19:36 -0600)]
progs/perf: glGenerateMipmap() test
Brian Paul [Fri, 25 Sep 2009 01:33:22 +0000 (19:33 -0600)]
mesa: _mesa_meta_GenerateMipmap() now working
Handles GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP.
But GL_TEXTURE_3D and texture borders not supported yet.
Brian Paul [Thu, 24 Sep 2009 19:38:27 +0000 (13:38 -0600)]
mesa: remove: unused gl_vertex_program::TnlData field
Ian Romanick [Fri, 25 Sep 2009 01:27:20 +0000 (18:27 -0700)]
NV fp lexer: Add UP4B and UP4UB instructions that were previously missing
Eric Anholt [Thu, 24 Sep 2009 23:15:52 +0000 (16:15 -0700)]
intel: Flush the batch when we're about to subdata into a VBO.
This fixes the clears in openarena with the new metaops clear code, and
the new piglit vbo-subdata-sync test.
Bug #23857.
Eric Anholt [Thu, 24 Sep 2009 21:53:49 +0000 (14:53 -0700)]
i965: Clean up some mess with the batch cache.
Its flagging of extra state that's already flagged by the vtbl new_batch
when appropriate was confusing my tracking down of the OA clear bug.
Zack Rusin [Thu, 24 Sep 2009 23:20:08 +0000 (19:20 -0400)]
st/xorg: start working on the Xv acceleration code
Zack Rusin [Wed, 23 Sep 2009 16:06:13 +0000 (12:06 -0400)]
st/xorg: fills are supported plussome minor clenups
Zack Rusin [Wed, 23 Sep 2009 13:00:58 +0000 (09:00 -0400)]
st/xorg: add easier way of disabling/enabling acceleration
Brian Paul [Thu, 24 Sep 2009 22:08:47 +0000 (16:08 -0600)]
llvmpipe: add missing __FUNCTION__ parameter to debug_printf() calls
Brian Paul [Thu, 24 Sep 2009 22:07:45 +0000 (16:07 -0600)]
llvmpipe: increase max 3D texture size to 256
Brian Paul [Thu, 24 Sep 2009 22:06:21 +0000 (16:06 -0600)]
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/vbo/vbo_exec_array.c
Brian Paul [Thu, 24 Sep 2009 22:01:26 +0000 (16:01 -0600)]
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
Vinson Lee [Thu, 24 Sep 2009 21:59:57 +0000 (15:59 -0600)]
softpipe: Increase GL_MAX_3D_TEXTURE_SIZE to 256.
Eric Anholt [Thu, 24 Sep 2009 18:58:33 +0000 (11:58 -0700)]
i965: Emit zero initialization for NV VP temporaries as required.
This is similar to what r300 does inside the driver, but I've added it as
a generic option since it seems most hardware will want it.
Fixes piglit nv-init-zero-reg.vpfp and nv-init-zero-addr.vpfp.
Eric Anholt [Wed, 23 Sep 2009 23:50:59 +0000 (16:50 -0700)]
i965: Remove assert about NV_vp now that it somewhat works.
Eric Anholt [Thu, 24 Sep 2009 17:40:32 +0000 (10:40 -0700)]
i965: Load NV program matrices when required.
Eric Anholt [Wed, 23 Sep 2009 23:49:52 +0000 (16:49 -0700)]
mesa: Initialize NV_vertex_program fields for the parameter lists and such.
This helps let drivers treat NV_vp like ARB_vp.
Brian Paul [Thu, 24 Sep 2009 20:24:14 +0000 (14:24 -0600)]
mesa: remove glEnable(GL_DEPTH_BOUNDS_TEST_EXT) check/warning
At the time of the enable there may not be a Z buffer, but one
may be attached to the FBO later.
Brian Paul [Thu, 24 Sep 2009 20:19:06 +0000 (14:19 -0600)]
mesa: remove rgbMode check in enable_texture()
If the currently bound FBO isn't yet validated it's possible for
rgbMode to be zero so we'll lose the texture enable.
This could fix some FBO rendering glitches, but I don't know of
any specific instances.
Brian Paul [Thu, 24 Sep 2009 18:41:14 +0000 (12:41 -0600)]
intel: use default array/element buffers in intel_generate_mipmap()
If there happened to be a bound VBO when intel_generate_mipmap() was
called we blew up because of a bad vertex array pointer.
Fixes regnumonline, bug 23859.
Brian Paul [Thu, 24 Sep 2009 18:37:34 +0000 (12:37 -0600)]
mesa: replace assertion with no-op function assignment
Brian Paul [Thu, 24 Sep 2009 18:37:06 +0000 (12:37 -0600)]
mesa: added comment
Brian Paul [Thu, 24 Sep 2009 18:35:51 +0000 (12:35 -0600)]
vbo: limit number of warnings to 10
Otherwise some apps will emit tons of warnings.
Pauli Nieminen [Thu, 24 Sep 2009 17:39:01 +0000 (20:39 +0300)]
Merge branch 'mesa_7_6_branch'
Pauli Nieminen [Thu, 24 Sep 2009 16:58:09 +0000 (19:58 +0300)]
radeon: Fix scissors for r600 KMS.
Radeon generic scissors code had problem that some of code was using exclusive
and some inclusive bottom right corner. Only r600 driver is using exclusive
coordinate so changed generic code to pass inclusive coordinate and r600 driver
changes BR coordinate to be exclusive.
Brian Paul [Thu, 24 Sep 2009 17:03:16 +0000 (11:03 -0600)]
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_render.c
src/mesa/drivers/dri/r600/r700_vertprog.c
src/mesa/drivers/dri/r600/r700_vertprog.h
src/mesa/drivers/dri/radeon/radeon_span.c
Brian Paul [Thu, 24 Sep 2009 16:52:15 +0000 (10:52 -0600)]
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
Brian Paul [Thu, 24 Sep 2009 16:47:42 +0000 (10:47 -0600)]
gallium/trace: casts to silence warnings
Brian Paul [Thu, 24 Sep 2009 15:54:36 +0000 (09:54 -0600)]
tgsi/sse: remove old comments
Brian Paul [Thu, 24 Sep 2009 15:51:05 +0000 (09:51 -0600)]
tgsi/sse: implement SEQ, SGT, SLE, SNE
Brian Paul [Thu, 24 Sep 2009 16:26:56 +0000 (10:26 -0600)]
tgsi/sse: Pass the lodbias, not zero. More comments.
This fixes the glean/glsl1 "texture2D(), with bias" test when using SSE.
Brian Paul [Wed, 23 Sep 2009 21:44:37 +0000 (15:44 -0600)]
mesa: added default case return to silence warning
Brian Paul [Wed, 23 Sep 2009 21:44:18 +0000 (15:44 -0600)]
glsl: init var to silence warning
Brian Paul [Wed, 23 Sep 2009 21:44:02 +0000 (15:44 -0600)]
glsl: fix missing initializers warning
Keith Whitwell [Thu, 24 Sep 2009 15:52:14 +0000 (16:52 +0100)]
progs/perf: fix warnings in readpixels test
Keith Whitwell [Thu, 24 Sep 2009 15:50:27 +0000 (16:50 +0100)]
progs/perf: fix typo in sconscript
Keith Whitwell [Thu, 24 Sep 2009 15:49:40 +0000 (16:49 +0100)]
trace: fix printf warnings
Keith Whitwell [Thu, 24 Sep 2009 15:49:27 +0000 (16:49 +0100)]
softpipe: fix compiler warnings
Keith Whitwell [Thu, 24 Sep 2009 15:49:05 +0000 (16:49 +0100)]
pipebuffer: fix printf warnings
Keith Whitwell [Thu, 24 Sep 2009 15:48:49 +0000 (16:48 +0100)]
pipebuffer: fix warnings
Keith Whitwell [Thu, 24 Sep 2009 15:44:58 +0000 (16:44 +0100)]
draw: fix warning
Keith Whitwell [Wed, 23 Sep 2009 18:03:07 +0000 (19:03 +0100)]
progs/perf: accept GL3.x also
Richard Li [Thu, 24 Sep 2009 15:26:15 +0000 (11:26 -0400)]
r600 : fix draw_prim bug: vertex fetcher setting.
José Fonseca [Thu, 24 Sep 2009 14:27:19 +0000 (15:27 +0100)]
softpipe: Use portable INLINE macro.
José Fonseca [Thu, 24 Sep 2009 14:27:03 +0000 (15:27 +0100)]
softpipe: Update SConscript.