mesa.git
15 years agollvmpipe: Remove partial tile override.
José Fonseca [Fri, 9 Oct 2009 15:50:32 +0000 (16:50 +0100)]
llvmpipe: Remove partial tile override.

15 years agollvmpipe: Undo debug override.
José Fonseca [Fri, 9 Oct 2009 15:21:25 +0000 (16:21 +0100)]
llvmpipe: Undo debug override.

15 years agollvmpipe: properly clip tile writes
Keith Whitwell [Fri, 9 Oct 2009 15:19:00 +0000 (16:19 +0100)]
llvmpipe: properly clip tile writes

15 years agollvmpipe: Pass framebuffer coords to shader.
José Fonseca [Fri, 9 Oct 2009 15:18:19 +0000 (16:18 +0100)]
llvmpipe: Pass framebuffer coords to shader.

15 years agollvmpipe: Tell setup shader inputs.
José Fonseca [Fri, 9 Oct 2009 15:18:03 +0000 (16:18 +0100)]
llvmpipe: Tell setup shader inputs.

15 years agollvmpipe: correct binning maths for iterating over whole tiles
Keith Whitwell [Fri, 9 Oct 2009 15:05:26 +0000 (16:05 +0100)]
llvmpipe: correct binning maths for iterating over whole tiles

15 years agollvmpipe: Get jit_context/jit_function across the rasterizer.
José Fonseca [Fri, 9 Oct 2009 14:52:18 +0000 (15:52 +0100)]
llvmpipe: Get jit_context/jit_function across the rasterizer.

15 years agollvmpipe: set block count/used values back to zero on reset
Keith Whitwell [Fri, 9 Oct 2009 14:29:10 +0000 (15:29 +0100)]
llvmpipe: set block count/used values back to zero on reset

15 years agollvmpipe: just bin whole tiles for now
Keith Whitwell [Fri, 9 Oct 2009 14:10:15 +0000 (15:10 +0100)]
llvmpipe: just bin whole tiles for now

15 years agollvmpipe: always call begin_binning on transition to active state
Keith Whitwell [Fri, 9 Oct 2009 14:07:18 +0000 (15:07 +0100)]
llvmpipe: always call begin_binning on transition to active state

15 years agollvmpipe: add LP_DEBUG env var
Keith Whitwell [Fri, 9 Oct 2009 13:59:35 +0000 (14:59 +0100)]
llvmpipe: add LP_DEBUG env var

15 years agollvmpipe: initialize setup data store
Keith Whitwell [Fri, 9 Oct 2009 13:36:41 +0000 (14:36 +0100)]
llvmpipe: initialize setup data store

15 years agollvmpipe: initialize setup line/tri/point funcs
Keith Whitwell [Fri, 9 Oct 2009 13:33:57 +0000 (14:33 +0100)]
llvmpipe: initialize setup line/tri/point funcs

15 years agollvmpipe: Put jit_context in store.
José Fonseca [Fri, 9 Oct 2009 13:30:25 +0000 (14:30 +0100)]
llvmpipe: Put jit_context in store.

15 years agollvmpipe: trivial/clear works
Keith Whitwell [Fri, 9 Oct 2009 13:29:25 +0000 (14:29 +0100)]
llvmpipe: trivial/clear works

15 years agollvmpipe: more debug
Keith Whitwell [Fri, 9 Oct 2009 13:07:25 +0000 (14:07 +0100)]
llvmpipe: more debug

15 years agollvmpipe: Replace util_pack_color with straight float_to_ubyte.
José Fonseca [Fri, 9 Oct 2009 13:03:11 +0000 (14:03 +0100)]
llvmpipe: Replace util_pack_color with straight float_to_ubyte.

15 years agollvmpipe: debug, crash fixes
Keith Whitwell [Fri, 9 Oct 2009 13:02:39 +0000 (14:02 +0100)]
llvmpipe: debug, crash fixes

15 years agollvmpipe: fix crash on init
Keith Whitwell [Fri, 9 Oct 2009 12:55:04 +0000 (13:55 +0100)]
llvmpipe: fix crash on init

15 years agollvmpipe: fix a couple of warnings
Keith Whitwell [Fri, 9 Oct 2009 12:53:14 +0000 (13:53 +0100)]
llvmpipe: fix a couple of warnings

15 years agollvmpipe: Add stub lp_setup_is_texture_referenced.
José Fonseca [Fri, 9 Oct 2009 12:44:24 +0000 (13:44 +0100)]
llvmpipe: Add stub lp_setup_is_texture_referenced.

15 years agollvmpipe: Pass state to setup.
José Fonseca [Fri, 9 Oct 2009 12:41:33 +0000 (13:41 +0100)]
llvmpipe: Pass state to setup.

15 years agoutil: Force ESI register for cpuid's ebx result.
José Fonseca [Fri, 9 Oct 2009 12:22:42 +0000 (13:22 +0100)]
util: Force ESI register for cpuid's ebx result.

Fixes a segfault and better code. Unfortunately using an arbitrary
register ("=r") causes the gcc to abort when the code is optimized saying
it can't satisfy the constraint. Setting seems to do the trick.

15 years agollvmpipe: Eliminate constant mapping/unmapping.
José Fonseca [Fri, 9 Oct 2009 10:29:33 +0000 (11:29 +0100)]
llvmpipe: Eliminate constant mapping/unmapping.

15 years agollvmpipe: remove dead code
Keith Whitwell [Fri, 9 Oct 2009 11:26:49 +0000 (12:26 +0100)]
llvmpipe: remove dead code

15 years agollvmpipe: get lp_setup_tri building
Keith Whitwell [Fri, 9 Oct 2009 11:19:49 +0000 (12:19 +0100)]
llvmpipe: get lp_setup_tri building

15 years agollvmpipe: use union lp_cmd_rast_arg directly, rather than through a pointer
Keith Whitwell [Fri, 9 Oct 2009 10:29:01 +0000 (11:29 +0100)]
llvmpipe: use union lp_cmd_rast_arg directly, rather than through a pointer

The union itself consists of pointers.  We don't need to be passing
pointer to pointers.

15 years agollvmpipe: hook up some state, add stub line and point functions
Keith Whitwell [Fri, 9 Oct 2009 09:44:07 +0000 (10:44 +0100)]
llvmpipe: hook up some state, add stub line and point functions

15 years agollvmpipe: Follow write_color/write_zstencil.
José Fonseca [Fri, 9 Oct 2009 09:37:24 +0000 (10:37 +0100)]
llvmpipe: Follow write_color/write_zstencil.

15 years agollvmpipe: calculate overall width and height, pass to rasterizer
Keith Whitwell [Fri, 9 Oct 2009 09:24:19 +0000 (10:24 +0100)]
llvmpipe: calculate overall width and height, pass to rasterizer

15 years agollvmpipe: more wip on coefficients
Keith Whitwell [Fri, 9 Oct 2009 09:23:53 +0000 (10:23 +0100)]
llvmpipe: more wip on coefficients

15 years agollvmpipe: get lp_setup compiling
Keith Whitwell [Thu, 8 Oct 2009 22:08:41 +0000 (23:08 +0100)]
llvmpipe: get lp_setup compiling

15 years agollvmpipe: triangle struct owns its copy of shader inputs
Keith Whitwell [Thu, 8 Oct 2009 21:46:21 +0000 (22:46 +0100)]
llvmpipe: triangle struct owns its copy of shader inputs

15 years agollvmpipe: work on clears and coefficients
Keith Whitwell [Thu, 8 Oct 2009 18:58:28 +0000 (19:58 +0100)]
llvmpipe: work on clears and coefficients

15 years agollvmpipe: Remove quad headers.
José Fonseca [Thu, 8 Oct 2009 18:56:01 +0000 (19:56 +0100)]
llvmpipe: Remove quad headers.

15 years agollvmpipe: Adjust interpolation coeffs declaration.
José Fonseca [Thu, 8 Oct 2009 18:53:56 +0000 (19:53 +0100)]
llvmpipe: Adjust interpolation coeffs declaration.

15 years agollvmpipe: Call lp_rast_shade_quads from tri rasterizer.
José Fonseca [Thu, 8 Oct 2009 18:53:14 +0000 (19:53 +0100)]
llvmpipe: Call lp_rast_shade_quads from tri rasterizer.

15 years agollvmpipe: Fix typo.
José Fonseca [Thu, 8 Oct 2009 18:18:35 +0000 (19:18 +0100)]
llvmpipe: Fix typo.

15 years agollvmpipe: rast_tri updates
Keith Whitwell [Thu, 8 Oct 2009 18:14:46 +0000 (19:14 +0100)]
llvmpipe: rast_tri updates

15 years agollvmpipe: Final adjustments to rasterizer methods.
José Fonseca [Thu, 8 Oct 2009 18:16:47 +0000 (19:16 +0100)]
llvmpipe: Final adjustments to rasterizer methods.

15 years agollvmpipe: More assorted build fixes.
José Fonseca [Thu, 8 Oct 2009 18:03:35 +0000 (19:03 +0100)]
llvmpipe: More assorted build fixes.

15 years agollvmpipe: Complete more rasterizer methods..
José Fonseca [Thu, 8 Oct 2009 18:03:14 +0000 (19:03 +0100)]
llvmpipe: Complete more rasterizer methods..

15 years agollvmpipe: Assorted build fixes.
José Fonseca [Thu, 8 Oct 2009 16:59:57 +0000 (17:59 +0100)]
llvmpipe: Assorted build fixes.

15 years agollvmpipe: Implement some of the rasterizer functions.
José Fonseca [Thu, 8 Oct 2009 16:59:44 +0000 (17:59 +0100)]
llvmpipe: Implement some of the rasterizer functions.

15 years agollvmpipe: start cleaning up
Keith Whitwell [Thu, 8 Oct 2009 16:52:35 +0000 (17:52 +0100)]
llvmpipe: start cleaning up

15 years agollvmpipe: remove some old sampler support structs
Keith Whitwell [Thu, 8 Oct 2009 16:20:40 +0000 (17:20 +0100)]
llvmpipe: remove some old sampler support structs

15 years agollvmpipe: Fix up lp_rast_shade_quads.
José Fonseca [Thu, 8 Oct 2009 16:26:13 +0000 (17:26 +0100)]
llvmpipe: Fix up lp_rast_shade_quads.

15 years agollvmpipe: Remove dead files from SConscript.
José Fonseca [Thu, 8 Oct 2009 16:06:49 +0000 (17:06 +0100)]
llvmpipe: Remove dead files from SConscript.

15 years agollvmpipe: Update lp_setup_clear invocation.
José Fonseca [Thu, 8 Oct 2009 16:06:32 +0000 (17:06 +0100)]
llvmpipe: Update lp_setup_clear invocation.

15 years agollvmpipe: Update more copyright headers.
José Fonseca [Thu, 8 Oct 2009 16:06:03 +0000 (17:06 +0100)]
llvmpipe: Update more copyright headers.

15 years agollvmpipe: remove tex tile cache and related code
Keith Whitwell [Thu, 8 Oct 2009 15:33:12 +0000 (16:33 +0100)]
llvmpipe: remove tex tile cache and related code

15 years agollvmpipe: rewrite llvmpipe_clear()
Keith Whitwell [Thu, 8 Oct 2009 15:32:03 +0000 (16:32 +0100)]
llvmpipe: rewrite llvmpipe_clear()

15 years agollvmpipe: wip me harder
Keith Whitwell [Thu, 8 Oct 2009 14:44:29 +0000 (15:44 +0100)]
llvmpipe: wip me harder

15 years agollvmpipe: Update includes and copyright headers.
José Fonseca [Thu, 8 Oct 2009 11:51:46 +0000 (12:51 +0100)]
llvmpipe: Update includes and copyright headers.

15 years agollvmpipe: Update SConscript.
José Fonseca [Thu, 8 Oct 2009 11:44:52 +0000 (12:44 +0100)]
llvmpipe: Update SConscript.

15 years agollvmpipe: Add the rast -> jit shader glue.
José Fonseca [Thu, 8 Oct 2009 11:44:30 +0000 (12:44 +0100)]
llvmpipe: Add the rast -> jit shader glue.

Ugly code. Will eventually be reduced to a very thin inlined function.

15 years agollvmpipe: whip out the intra-tile code from lp_setup_tri.c
Keith Whitwell [Thu, 8 Oct 2009 11:15:12 +0000 (12:15 +0100)]
llvmpipe: whip out the intra-tile code from lp_setup_tri.c

The "setup" module handles building per-tile display lists.
Intra-tile rendering is handled by lp_rast*.c

15 years agollvmpipe: more wipping
Keith Whitwell [Thu, 8 Oct 2009 10:47:33 +0000 (11:47 +0100)]
llvmpipe: more wipping

15 years agollvmpipe: import experimental softpipe rasterizer code, wip binning code
Keith Whitwell [Wed, 7 Oct 2009 21:36:43 +0000 (22:36 +0100)]
llvmpipe: import experimental softpipe rasterizer code, wip binning code

WIP, does't build or run.

Rasterizer code is based on Nick Capen's devmaster posts and the
larrabee articles, but currently doesn't share either the performance
or correctness of either...

15 years agoi915g: Fix MSVC build.
Vinson Lee [Wed, 7 Oct 2009 20:29:23 +0000 (14:29 -0600)]
i915g: Fix MSVC build.

15 years agosoftpipe: new comments
Brian Paul [Wed, 7 Oct 2009 19:30:48 +0000 (13:30 -0600)]
softpipe: new comments

15 years agosoftpipe: whitespace and comment fixes
Brian Paul [Wed, 7 Oct 2009 19:21:57 +0000 (13:21 -0600)]
softpipe: whitespace and comment fixes

15 years agosoftpipe: prefix non-static functions with sp_
Brian Paul [Wed, 7 Oct 2009 19:17:20 +0000 (13:17 -0600)]
softpipe: prefix non-static functions with sp_

15 years agor300compiler: fix scons build again
Joakim Sindholt [Wed, 7 Oct 2009 19:02:18 +0000 (21:02 +0200)]
r300compiler: fix scons build again

15 years agoMerge branch 'master' into r300g-glsl
Nicolai Hähnle [Wed, 7 Oct 2009 18:45:08 +0000 (20:45 +0200)]
Merge branch 'master' into r300g-glsl

Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoMerge branch 'mesa_7_6_branch'
Nicolai Hähnle [Wed, 7 Oct 2009 18:39:22 +0000 (20:39 +0200)]
Merge branch 'mesa_7_6_branch'

15 years agoshader_api: Fix bounds checking of glUniform and glUniformMatrix
Nicolai Hähnle [Sat, 3 Oct 2009 14:30:16 +0000 (16:30 +0200)]
shader_api: Fix bounds checking of glUniform and glUniformMatrix

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoprog_parameter: Document the fact that Size may be > 4
Nicolai Hähnle [Sat, 3 Oct 2009 14:18:57 +0000 (16:18 +0200)]
prog_parameter: Document the fact that Size may be > 4

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoutil: do some more util_blit_pixels cases without temporaries
Keith Whitwell [Wed, 7 Oct 2009 16:50:03 +0000 (17:50 +0100)]
util: do some more util_blit_pixels cases without temporaries

When the source surface is pointing at a 2d texture with only one
mipmap level, use that directly rather than creating a temporary.
Probably want to cover more cases, but this is a start.

15 years agomesa/st: add missing mesa constant file name
Keith Whitwell [Wed, 7 Oct 2009 16:48:45 +0000 (17:48 +0100)]
mesa/st: add missing mesa constant file name

There are many different names for constants in mesa, we were missing
one since the ureg rewrite.

15 years agost/mesa: pass pipe_screen, not pipe_context to st_choose_format() functions
Brian Paul [Wed, 7 Oct 2009 15:58:03 +0000 (09:58 -0600)]
st/mesa: pass pipe_screen, not pipe_context to st_choose_format() functions

These don't depend on context state, but use a screen pointer.

15 years agodocs: fix glXQueryDrawable() bugs
Brian Paul [Wed, 7 Oct 2009 15:41:00 +0000 (09:41 -0600)]
docs: fix glXQueryDrawable() bugs

15 years agomesa/xlib: fix glXQueryDrawable() bugs, see bug 24320
Brian Paul [Wed, 7 Oct 2009 15:40:22 +0000 (09:40 -0600)]
mesa/xlib: fix glXQueryDrawable() bugs, see bug 24320

15 years agogallium/xlib: fix glXQueryDrawable() bugs, see bug 24320
Brian Paul [Wed, 7 Oct 2009 15:40:04 +0000 (09:40 -0600)]
gallium/xlib: fix glXQueryDrawable() bugs, see bug 24320

15 years agoprogs/xdemos: test glXQueryDrawable()
Brian Paul [Wed, 7 Oct 2009 15:11:23 +0000 (09:11 -0600)]
progs/xdemos: test glXQueryDrawable()

15 years agoprogs/xdemos: fix swapped parameters to CreatePbuffer()
Brian Paul [Wed, 7 Oct 2009 15:10:48 +0000 (09:10 -0600)]
progs/xdemos: fix swapped parameters to CreatePbuffer()

15 years agost/dri: Add missing front buffer case in dri_get_buffers().
Michel Dänzer [Wed, 7 Oct 2009 14:36:39 +0000 (16:36 +0200)]
st/dri: Add missing front buffer case in dri_get_buffers().

This seems to help for compiz at least with some drivers.

Also add an assert(0) to catch unhandled cases in the future.

15 years agoswrast: s/GLfloat/GLuint/ in bzero()
Brian Paul [Wed, 7 Oct 2009 14:07:53 +0000 (08:07 -0600)]
swrast: s/GLfloat/GLuint/ in bzero()

15 years agoswrast: add missing returns
Brian Paul [Wed, 7 Oct 2009 01:05:23 +0000 (19:05 -0600)]
swrast: add missing returns

15 years agoprogs/test: Fix MSVC build.
Vinson Lee [Wed, 7 Oct 2009 13:54:31 +0000 (07:54 -0600)]
progs/test: Fix MSVC build.

15 years agomesa/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
Brian Paul [Wed, 7 Oct 2009 13:45:15 +0000 (07:45 -0600)]
mesa/xlib: return 0 for errorBase, eventBase in glXQueryExtension()

A little better than leaving the values undefined, I think.
See bug 24321.

15 years agogallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
Brian Paul [Wed, 7 Oct 2009 13:43:12 +0000 (07:43 -0600)]
gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()

A little better than leaving the values undefined, I think.
See bug 24321.

15 years agoi915g: Use buffer write instead of map for lit vertices
Jakob Bornecrantz [Wed, 7 Oct 2009 02:28:04 +0000 (03:28 +0100)]
i915g: Use buffer write instead of map for lit vertices

15 years agoi915g: Change order of buffer_write arguments
Jakob Bornecrantz [Wed, 7 Oct 2009 02:26:03 +0000 (03:26 +0100)]
i915g: Change order of buffer_write arguments

They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.

15 years agoi915g: Disable vbuf fifo and minor commenting of vbuf code
Jakob Bornecrantz [Wed, 7 Oct 2009 00:40:37 +0000 (01:40 +0100)]
i915g: Disable vbuf fifo and minor commenting of vbuf code

The vbuf fifo doesn't appear to help once the libdrm
reuse flag has been set.

15 years agonv04-nv40: Fix swizzle transfers for NPOT sizes.
Younes Manton [Wed, 7 Oct 2009 02:07:47 +0000 (22:07 -0400)]
nv04-nv40: Fix swizzle transfers for NPOT sizes.

Workarounds not necessary, SIFM can handle NPOT, we just weren't setting
dst dimensions properly. SIFM can't handle odd w,h though, that still
needs fixing.

15 years agoprogs/tests: fix MSVC build.
Vinson Lee [Tue, 6 Oct 2009 22:02:47 +0000 (16:02 -0600)]
progs/tests: fix MSVC build.

15 years agor300/compiler: Fix R300 vertex program dumps
Nicolai Hähnle [Tue, 6 Oct 2009 19:24:44 +0000 (21:24 +0200)]
r300/compiler: Fix R300 vertex program dumps

The source register field has 8 bits.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300/compiler: Fix yet another regression in register allocation
Nicolai Hähnle [Tue, 6 Oct 2009 19:13:27 +0000 (21:13 +0200)]
r300/compiler: Fix yet another regression in register allocation

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300/compiler: Fix a really stupid logic inversion in the generic dataflow code
Nicolai Hähnle [Tue, 6 Oct 2009 18:24:46 +0000 (20:24 +0200)]
r300/compiler: Fix a really stupid logic inversion in the generic dataflow code

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300/compiler: Fix regression in pair scheduling
Nicolai Hähnle [Tue, 6 Oct 2009 18:07:38 +0000 (20:07 +0200)]
r300/compiler: Fix regression in pair scheduling

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoprogs/perf: Fix MSVC build.
Vinson Lee [Tue, 6 Oct 2009 01:42:58 +0000 (18:42 -0700)]
progs/perf: Fix MSVC build.

15 years agor600: r700PredictRenderSize can flush, so move index buffer setup after it
Andre Maasikas [Mon, 5 Oct 2009 06:38:52 +0000 (09:38 +0300)]
r600: r700PredictRenderSize can flush, so move index buffer setup after it

15 years agonv50: fix segfault when there's gaps in enabled texture units
Ben Skeggs [Tue, 6 Oct 2009 03:55:48 +0000 (13:55 +1000)]
nv50: fix segfault when there's gaps in enabled texture units

Tested with progs/demos/multiarb.

15 years agonouveau: fix buffer object leak
Ben Skeggs [Tue, 6 Oct 2009 03:18:09 +0000 (13:18 +1000)]
nouveau: fix buffer object leak

Very apparent with resizing windows on DRI2.

15 years agoi915g: Add more defines to tweek batchbuffer
Jakob Bornecrantz [Tue, 6 Oct 2009 01:30:43 +0000 (18:30 -0700)]
i915g: Add more defines to tweek batchbuffer

15 years agoi915g: Tweek vertexbuffer size
Jakob Bornecrantz [Tue, 6 Oct 2009 01:11:25 +0000 (18:11 -0700)]
i915g: Tweek vertexbuffer size

15 years agoi965g: remove 965/brw files from XLIB_WINSYS_SOURCES
Brian Paul [Mon, 5 Oct 2009 20:43:38 +0000 (14:43 -0600)]
i965g: remove 965/brw files from XLIB_WINSYS_SOURCES

15 years agoMerge branch 'mesa_7_6_branch'
Brian Paul [Mon, 5 Oct 2009 20:42:08 +0000 (14:42 -0600)]
Merge branch 'mesa_7_6_branch'

Conflicts:

src/gallium/auxiliary/util/u_cpu_detect.c

15 years agointel: use driReadDrawable in do_copy_texsubimage()
Brian Paul [Mon, 5 Oct 2009 20:26:16 +0000 (14:26 -0600)]
intel: use driReadDrawable in do_copy_texsubimage()