profile/ivi/mesa.git
14 years agoscons: Use libdrm options only where needed.
José Fonseca [Sat, 10 Apr 2010 01:00:33 +0000 (02:00 +0100)]
scons: Use libdrm options only where needed.

Prevents needless recompiles when switching dri=yes to no.

14 years agoscons: Build glapi regardless of the dri option.
José Fonseca [Sat, 10 Apr 2010 00:53:12 +0000 (01:53 +0100)]
scons: Build glapi regardless of the dri option.

14 years agor300g: revisit some assertions and fix potential failures
Marek Olšák [Sun, 11 Apr 2010 06:28:39 +0000 (08:28 +0200)]
r300g: revisit some assertions and fix potential failures

* Turn some assertions to error messages.
* At most 16 vertex elements can be set, others are ignored.
* Rasterize at most 8 vertex-shader generic outputs, others are ignored.
  This includes fog and WPOS.
* Unknown shader semantic names are ignored.

14 years agor300g: use cliprects for scissoring
Marek Olšák [Sun, 11 Apr 2010 06:27:33 +0000 (08:27 +0200)]
r300g: use cliprects for scissoring

Cliprects can be disabled, scissors can't. It maps nicely to hardware.

14 years agost/egl: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:20:10 +0000 (22:20 -0700)]
st/egl: Remove unnecessary header.

14 years agoi965: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:14:06 +0000 (22:14 -0700)]
i965: Remove unnecessary header.

14 years agor300: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 05:03:29 +0000 (22:03 -0700)]
r300: Remove unnecessary header.

14 years agomach64: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 04:51:24 +0000 (21:51 -0700)]
mach64: Remove unnecessary header.

14 years agoradeon: Remove unnecessary header.
Vinson Lee [Sun, 11 Apr 2010 04:42:05 +0000 (21:42 -0700)]
radeon: Remove unnecessary header.

14 years agor300g: fix mipmapped 3D textures
Marek Olšák [Sun, 11 Apr 2010 03:06:27 +0000 (05:06 +0200)]
r300g: fix mipmapped 3D textures

This is a bug in the CS checker causing CS being rejected.

14 years agor300g: support some exotic sampler formats
Marek Olšák [Sun, 11 Apr 2010 02:43:23 +0000 (04:43 +0200)]
r300g: support some exotic sampler formats

14 years agost/mesa: Silence uninitialized variable warning.
Vinson Lee [Sun, 11 Apr 2010 04:05:40 +0000 (21:05 -0700)]
st/mesa: Silence uninitialized variable warning.

14 years agonvfx: Silence uninitialized variable warning.
Vinson Lee [Sun, 11 Apr 2010 03:45:03 +0000 (20:45 -0700)]
nvfx: Silence uninitialized variable warning.

14 years agonvfx: Silence uninitialized variable warnings.
Vinson Lee [Sun, 11 Apr 2010 03:28:24 +0000 (20:28 -0700)]
nvfx: Silence uninitialized variable warnings.

14 years agor300/compiler: Remove unused variable.
Vinson Lee [Sun, 11 Apr 2010 03:12:32 +0000 (20:12 -0700)]
r300/compiler: Remove unused variable.

14 years agosvga: Silence uninitialized variable warnings.
Vinson Lee [Sun, 11 Apr 2010 03:05:10 +0000 (20:05 -0700)]
svga: Silence uninitialized variable warnings.

14 years agoprogs/glsl: Update .gitignore.
Vinson Lee [Sun, 11 Apr 2010 02:51:55 +0000 (19:51 -0700)]
progs/glsl: Update .gitignore.

14 years agor300g: cleanup handling of sampler views
Marek Olšák [Sat, 10 Apr 2010 23:13:11 +0000 (01:13 +0200)]
r300g: cleanup handling of sampler views

The evolution of TX_FORMAT bits is as follows:
* When a texture is created, set bits independent of pipe_format.
* When a sampler view is created, add format-specific bits.
* When sampler states and views are getting merged, add min/max LOD.

14 years agor300g: pick up some new colorbuffer formats
Marek Olšák [Sat, 10 Apr 2010 17:59:17 +0000 (19:59 +0200)]
r300g: pick up some new colorbuffer formats

14 years agor300g: hack around issue with doom3 and 0 stride
Dave Airlie [Sat, 10 Apr 2010 22:04:37 +0000 (08:04 +1000)]
r300g: hack around issue with doom3 and 0 stride

This is most likely a bug in the mesa state tracker, but do the quick hack
for now to avoid the divide by 0.

reported and hack generated by almos on #radeon

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agost/egl: Remove depth/stencil format from the native interface.
Chia-I Wu [Fri, 9 Apr 2010 16:36:50 +0000 (00:36 +0800)]
st/egl: Remove depth/stencil format from the native interface.

A native display has no interest in depth/stencil format.  Remove it
from the interface and let the common code derive the supported
depth/stencil formats from the pipe screen.

14 years agost/vega: Require both depth and stencil.
Chia-I Wu [Sat, 10 Apr 2010 17:14:42 +0000 (01:14 +0800)]
st/vega: Require both depth and stencil.

The implementation requires not only a depth buffer, but also a stencil
buffer.

14 years agost/egl: Remove __GLcontextModes from the native interface.
Chia-I Wu [Fri, 9 Apr 2010 10:05:16 +0000 (18:05 +0800)]
st/egl: Remove __GLcontextModes from the native interface.

Replace __GLcontextModes by a subset of its attributes that makes sense
to EGL.  This also gets rid of GL headers from the common code.

14 years agonv50: plug in miptree resource vtbl
Christoph Bumiller [Sat, 10 Apr 2010 17:07:28 +0000 (19:07 +0200)]
nv50: plug in miptree resource vtbl

14 years agor300g: use clamp-to-edge instead of repeat/mirrored-repeat for NPOT textures
Marek Olšák [Sat, 10 Apr 2010 17:00:10 +0000 (19:00 +0200)]
r300g: use clamp-to-edge instead of repeat/mirrored-repeat for NPOT textures

14 years agoSquashed commit of the following:
Keith Whitwell [Sat, 10 Apr 2010 15:05:54 +0000 (16:05 +0100)]
Squashed commit of the following:

commit 0189cb2fde9f5d7326fd4bfbc2e52db4cce73b3e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Apr 10 12:48:43 2010 +0100

    gallium: don't use generic get_transfer func for textures

    It doesn't know and can't fill in the stride value.

commit 65bc6f88fd9ce8ff90175b250e580bef2739ea35
Author: Chia-I Wu <olv@lunarg.com>
Date:   Sat Apr 10 13:49:34 2010 +0800

    i915g: Initialize screen surface function.

commit eb56e64986790aa2fa35534ce652b78656b0c3c5
Merge: f8b0a7f e7f1e5c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Apr 10 00:38:43 2010 +0100

    Merge commit 'origin/master' into gallium-resources

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

commit f8b0a7f6a3a98fd36ce90a81073ec8c8f09b684c
Merge: a3c9980 f43c679
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Apr 10 00:35:09 2010 +0100

    Merge commit 'origin/master' into gallium-resources

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

commit a3c99807de37dc2c072f1d75ed3a11da333bc9a1
Author: unknown <michal@.(none)>
Date:   Fri Apr 9 18:51:39 2010 +0200

    scons: Add missing sources.

commit 927cec79cedb457efa9e6f335727cfcb8e4908e2
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 18:07:56 2010 +0200

    gallium: fix another compile warning after merge. Hmpf.

commit 52953cd7b0e51deafecb812bdc40f9e45f9ac62a
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 18:02:11 2010 +0200

    gallium: fix comment

commit 7c8763aa6cfc74adf1ea49c2bab25ca17b32575f
Author: unknown <michal@.(none)>
Date:   Fri Apr 9 18:05:20 2010 +0200

    util: Fix type cast.

commit 9d0086411a104b7cc9297aac0d1f82853118d7bf
Author: unknown <michal@.(none)>
Date:   Fri Apr 9 18:04:33 2010 +0200

    libgl-gdi: Use proper unwrap functions for resources.

commit 251a5cdd18ba31c690ef61f133dfc65cd4a45cf8
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 17:51:23 2010 +0200

    gallium: more comments fixup

commit 8f3f9d5e1e9c0de98a3dfb19e81250d2c32ee4e9
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 17:48:18 2010 +0200

    gallium: another fix after merge

commit 41f00a32ee5be91512c048bacb89ede0e04bc08d
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 17:44:30 2010 +0200

    gallium: more pipe_texture/resource fixes after merge

commit faf53328d1154c51d8a59513f2bfcae62272b0bf
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 17:44:24 2010 +0200

    gallium: fix comments for changed USAGE flags

commit fdcb17bea4b0798d316b56deea69832f41142adf
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Fri Apr 9 16:40:07 2010 +0200

    gallium/pb: pb uses PB_USAGE_ flags, not PIPE_TRANSFER_ (same value anyway)

commit c95f7278ecc6db417ec1053279f2a8172c47aee9
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:44:35 2010 +0100

    llvmpipe: fix merge glitches

commit 28f8b8683175149a381be5eff263d4c20568bce7
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:41:39 2010 +0100

    r300g: update after merge for pipe_resources

commit 248c93cbc066ba6e3fadd94c5fcf3bdbb373d8fd
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:41:20 2010 +0100

    st/mesa: fix old pipe_texture usages

commit a563b1c5c2cb57b3ef28a3654d9b477460d13ced
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:40:56 2010 +0100

    r300g: remove unused variable

commit 734500131d828c9dfd68c5fa26b3e6b07e086d2d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:40:36 2010 +0100

    nv50: fix compiler warning

commit efd402e13037e5c3e29759fa5b1c754c6d65d0e2
Merge: fec8a1d 5452615
Author: Keith Whitwell <keithw@vmware.com>
Date:   Fri Apr 9 13:33:57 2010 +0100

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/drivers/cell/ppu/cell_screen.c
     src/gallium/drivers/cell/ppu/cell_texture.c
     src/gallium/drivers/llvmpipe/lp_screen.c
     src/gallium/drivers/r300/r300_context.c
     src/gallium/drivers/r300/r300_render.c
     src/gallium/drivers/r300/r300_screen.c
     src/gallium/drivers/r300/r300_state.c
     src/gallium/drivers/r300/r300_texture.c
     src/gallium/drivers/r300/r300_transfer.c
     src/gallium/state_trackers/egl/common/egl_g3d.h
     src/gallium/state_trackers/egl/kms/native_kms.c
     src/gallium/state_trackers/egl/x11/native_dri2.c
     src/gallium/state_trackers/egl/x11/native_ximage.c

commit fec8a1db13fac04ef56f6ece799d1f20aa3011db
Author: Marek Olšák <maraeo@gmail.com>
Date:   Sat Apr 3 07:58:34 2010 +0200

    util: fix assertion failures in pipe_buffer_flush_mapped_range

commit 1ff3984c2edce9927744f3cce3e7b07778990170
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 8 17:44:54 2010 +0200

    docs: fix transfer_map description

commit 20bf14be8ac6438cb1afa38212e306fc06a5ed40
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Apr 8 14:39:13 2010 +0100

    util: fix up several uses of pipe_map_buffer_range

    This function used to return a pointer to where the start of the
    actual buffer would have been, even though only the requested range is
    being mapped.

    In the resources change, the function was modified to use a transfer
    internally, and started returning the pointer to the beginning of the
    transfer, ie the mapped range.

    Some users of the function were changed to reflect this new behaviour,
    some were not.  Since then the function has reverted to its original
    behaviour, matching master.

    This change restores some of the users of the map_buffer_range helper
    to expect the old/original behaviour.

commit 33179a86058b68b518f40971030db337dc26fe6e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Apr 8 14:38:54 2010 +0100

    mesa/st: fix up several uses of pipe_map_buffer_range

    This function used to return a pointer to where the start of the
    actual buffer would have been, even though only the requested range is
    being mapped.

    In the resources change, the function was modified to use a transfer
    internally, and started returning the pointer to the beginning of the
    transfer, ie the mapped range.

    Some users of the function were changed to reflect this new behaviour,
    some were not.  Since then the function has reverted to its original
    behaviour, matching master.

    This change restores some of the users of the map_buffer_range helper
    to expect the old/original behaviour.

commit 3f5363d4dc9d7ad48467ae82d58d5f3d9bd10698
Author: Keith Whitwell <keithw@vmware.com>
Date:   Wed Apr 7 17:26:52 2010 +0100

    util: map_range and flush_range have offsets relative to start of buffer

commit 7eb1bfb97a790c73188d6b616d54fb3849e69b1e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Wed Apr 7 17:26:08 2010 +0100

    nv50: fix compiler warning

commit d040daff0642dd791ac38e9b353dc251b03fc873
Author: Keith Whitwell <keithw@vmware.com>
Date:   Wed Apr 7 17:25:58 2010 +0100

    nvfx: fix compiler warning

commit 49ec01dffb8e99ab3ff8f856287db7b4df3efed6
Author: Chia-I Wu <olv@lunarg.com>
Date:   Mon Apr 5 11:58:53 2010 +0800

    mesa/es: Fixes for gallium-resources.

commit 47c87ada452be45766928a01b6d69da63e3a5f5e
Author: Marek Olšák <maraeo@gmail.com>
Date:   Sat Apr 3 05:19:20 2010 +0200

    r300g: fix transfers for textures created from winsys handles

commit 5f2701fddaef9c18d85c049311c2819c49cc1ae0
Author: Luca Barbieri <luca@luca-barbieri.com>
Date:   Sat Apr 3 03:52:38 2010 +0200

    nouveau: don't use the staging usage

    Maybe it could make sense, but for now dynamic is enough.

    None of these avoid uncached reads from GART on AGP cards.

commit 0db20fa49e008f35911007fa7ed9be1d678a2161
Author: Luca Barbieri <luca@luca-barbieri.com>
Date:   Sat Apr 3 03:27:19 2010 +0200

    i965: add brw_resource.c to Makefile

commit b94f3e7389cbd1b6465de3c04e8059ce73f1ea1f
Author: Luca Barbieri <luca@luca-barbieri.com>
Date:   Sat Apr 3 01:48:33 2010 +0200

    nouveau: fix for gallium-resources

commit a01ff99a19986e6beb7903431e60a074945b09bc
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 19:26:35 2010 +0200

    gallium: fix missing includes

commit 26aeded562ce947a6deeb867fe22bf8daf7b1a1a
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 19:19:18 2010 +0200

    gallium: remove video interface and related stuff

    These interfaces weren't quite was needed, and building disabled for a while.
    Some code actually build since some branch merge, and were now not fully
    converted to gallium-resources.
    See http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09619.html
    for a discussion of this. Video related work is done in origin/pipe-video
    branch.

commit c64285aea45997a276fb141d7badc8a04f617c7c
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 18:45:54 2010 +0200

    python: fixes for resource changes

    doesn't look quite ok yet, but sort of compiles.

commit 03d4d5a41f5cf158a358fd705c695e1c987a328f
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 18:34:46 2010 +0200

    gallium: s/u_box_orgin_2d/u_box_origin_2d

commit 2444f023142bcaf7bd310b44794580f273254408
Author: Marek Olšák <maraeo@gmail.com>
Date:   Thu Apr 1 03:26:50 2010 +0200

    r300g: fix segfault when the transfers functions are used

    Still broken.

commit 6f09bf4066ab651b323c131bb07978e700519805
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 00:05:12 2010 +0200

    r300g: compile fixes

commit 76711ff40d2092f9ef03d452de7458c4e76d9246
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Thu Apr 1 00:04:47 2010 +0200

    nvfx: more compile fixes

commit c5d2e90c9cc119447a447dc04a4bce4ab91fc671
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Wed Mar 31 23:18:50 2010 +0200

    gallium: more mostly merge fallout fixes...

commit fbc3722696790857f4adc936190406e74dffd969
Merge: 86d9225 d97f696
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Wed Mar 31 22:09:35 2010 +0200

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/drivers/cell/ppu/cell_screen.c
     src/gallium/drivers/i915/i915_buffer.c
     src/gallium/drivers/i915/i915_context.h
     src/gallium/drivers/i915/i915_resource_texture.c
     src/gallium/drivers/i915/i915_screen.c
     src/gallium/drivers/i915/i915_state_emit.c
     src/gallium/drivers/i965/brw_resource_texture.c
     src/gallium/drivers/llvmpipe/lp_screen.c
     src/gallium/drivers/llvmpipe/lp_setup.c
     src/gallium/drivers/nvfx/nv30_fragtex.c
     src/gallium/drivers/nvfx/nv40_fragtex.c
     src/gallium/drivers/nvfx/nvfx_miptree.c
     src/gallium/drivers/nvfx/nvfx_screen.c
     src/gallium/drivers/nvfx/nvfx_transfer.c
     src/gallium/drivers/r300/r300_state.c
     src/gallium/drivers/svga/svga_screen_texture.c
     src/gallium/state_trackers/dri/common/dri_drawable.c
     src/gallium/state_trackers/dri/common/dri_screen.c
     src/gallium/state_trackers/dri/common/dri_st_api.h
     src/gallium/state_trackers/dri/drm/dri1.c
     src/gallium/state_trackers/dri/drm/dri1.h
     src/gallium/state_trackers/dri/drm/dri2.c
     src/gallium/state_trackers/python/st_device.c
     src/gallium/state_trackers/python/st_sample.c
     src/mesa/state_tracker/st_cb_clear.c
     src/mesa/state_tracker/st_cb_drawpixels.c
     src/mesa/state_tracker/st_cb_readpixels.c
     src/mesa/state_tracker/st_cb_texture.c
     src/mesa/state_tracker/st_extensions.c

commit 86d9225d19d194eebbbe95b059695697c3307d15
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Wed Mar 31 19:06:06 2010 +0200

    gallium: more fixes for bind changes

commit a215ef0606347e34669a580ec8df93ede7e46399
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Wed Mar 31 18:48:36 2010 +0200

    gallium/docs: some updates for bind changes

commit c6c7e6746cbc7af59f7972719ed76f43e8ac16fc
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 30 20:24:26 2010 +0200

    gallium: more bind change compile fixes

commit a83fa1504b78180524a5eb454ae186741a27cdf8
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 30 17:37:13 2010 +0200

    compile fixes

commit 30dc8afcd243d6a160571bac5f06d773e54a4196
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 30 16:56:28 2010 +0200

    fix some merge issues

commit 30aa617fee11fe50c0a9c2f33fcd120a474f5e34
Merge: 1dde609 3a830bc
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 30 16:09:45 2010 +0200

    Merge commit 'origin/gallium-buffer-usage-cleanup' into gallium-resources

    Conflicts:
     src/gallium/drivers/nouveau/nouveau_screen.c
     src/gallium/drivers/nvfx/nvfx_transfer.c
     src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c

commit 1dde609ad6c9d2dfa0a5f7167f3c5bcf023b7c4d
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Wed Mar 24 02:35:00 2010 +0100

    docs: some updates for pipe_resource

commit f236f9660d31b936f54b64ae07e569f8637067bd
Author: Luca Barbieri <luca@luca-barbieri.com>
Date:   Wed Mar 24 01:31:28 2010 +0100

    nvfx: fix for gallium-resources

    It seems to work with basic applications but almost surely needs more work.

    In particular, it probably shouldn't use PIPE_BUFFER_USAGE_* flags
    and should use PIPE_TRANSFER_* in several places.

    Also, we probably don't want the vtable indirect calls and that ought
    to be replaced with something better instead.

commit 5a136ad7b63768cb9a753eff8686c44592e62325
Author: Luca Barbieri <luca@luca-barbieri.com>
Date:   Wed Mar 24 01:31:19 2010 +0100

    nv50: fix build in gallium-resources

    Not actually tested.

    Also needs next patch tee to actually build, this is just the nv50 part
    split from the rest.

commit 3a830bc4a3f0f60c925b9434845a6bcad9a913c5
Author: Keith Whitwell <keithw@vmware.com>
Date:   Tue Mar 23 14:00:52 2010 -0700

    st/egl: fix up for binding flags

commit c6a80dc32ef17bc972d4137ce7444ebed4d28ebb
Author: Keith Whitwell <keithw@vmware.com>
Date:   Tue Mar 23 13:52:15 2010 -0700

    r300: restore 4k alignment for oqbo buffers

commit e75a8d5ea9e0ffcf67bc858e08937e10b4fc74ba
Author: Keith Whitwell <keithw@vmware.com>
Date:   Tue Mar 23 13:00:07 2010 -0700

    gallium: bind flags

commit 1f5b509543a7f399835fd9edf27c18e1643fab7d
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 19:32:21 2010 +0100

    i965g: scons compile fixes

commit 2c385f8f905ec794d9119c05c6293e0b1b9b565a
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 19:20:33 2010 +0100

    nouveau: drm compile fix

commit b285086ebd5132b47c340897c4622cc9fbd286cb
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 18:36:19 2010 +0100

    r300g: pipe_resource compile fixes

    bring back mistakenly deleted radeon_buffer.h
    plus some more

commit 7810606f423ef2f51f0a14b919640c2fd2c931aa
Author: Michal Krol <michal@vmware.com>
Date:   Tue Mar 23 16:21:03 2010 +0100

    softpipe: Map GS constants, too.

commit 366f1176fb89d2b1978da6cfe60000b76bbc7338
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 15:51:52 2010 +0100

    failover: update for pipe_resources

commit 615f44d70d293704ed821bc0b21fcfe6e363895d
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 15:51:02 2010 +0100

    identity: remove double is_resource_reference assignment

commit 7008586020395905ddfff333d02b3893de369796
Author: Roland Scheidegger <sroland@vmware.com>
Date:   Tue Mar 23 15:50:32 2010 +0100

    trace: compile fix

commit 058c5697bda4c9cf7b49d26ee27a34586544efaa
Merge: dd7ba13 b33fd3c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Tue Mar 23 06:40:39 2010 -0700

    Merge commit 'origin/gallium-resources' into gallium-buffer-usage-cleanup

    Conflicts:
     src/gallium/state_trackers/vega/api_filters.c
     src/mesa/state_tracker/st_cb_drawpixels.c

commit b33fd3ce3daf2921a895367d0ed3fd9c718a8575
Author: Michal Krol <michal@vmware.com>
Date:   Mon Mar 22 21:03:26 2010 +0100

    gallium: Usage parameter of get_transfer/transfer_inline_write is a bitfield.

commit 9c1162d9d656062a490a529997def3f674cc61fc
Author: Michal Krol <michal@vmware.com>
Date:   Mon Mar 22 20:50:49 2010 +0100

    scons: Update file lists after gallium-resources changes.

commit af9793ab9e5386b150d6b25c0d1978fdc67172e4
Author: Michal Krol <michal@vmware.com>
Date:   Mon Mar 22 20:04:39 2010 +0100

    gallium: Do not use `template` for formal parameter names.

commit dc2e12d714c444af9ff1acdd5a7e91408b116c99
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:41:34 2010 +0000

    ws/nouveau: remove pipe_texture reference

commit b94c72329f1be85887d40d49b0586979da469d77
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:40:41 2010 +0000

    ws/xlib: remove pipe_buffer reference in comment

commit 0a2af3eeae7de1d1cb433f0a2c35136b115f9920
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:39:34 2010 +0000

    st/vega: clean up reference to pipe_texture

commit 437ce98daae46be5d532fbb04c7cbf4a503c1623
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:39:02 2010 +0000

    st/python: begin conversion to pipe_resources, much more to do

commit 1b02e1ee3e5e87774f0c9e5f0e1898b7f8de1b16
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:29:34 2010 +0000

    st/xorg: update for pipe_resources

commit eb39977fe7a1d9f0c3f4f2d4303a93c2c613cc3b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:23:51 2010 +0000

    st/dri: update for pipe_resources

commit e447aeff597a4d8c0f5de25854c14c99f2cc138c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:23:36 2010 +0000

    st/egl: update for pipe_resources

commit e4cc48da8fdbd7d521257a6d7cd10e6fc5aa1a65
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:08:44 2010 +0000

    r300: drop use of R300 DONT SYNC flag

commit 129a83ab4d32e44ded5faea3f86ae5e1e62cddb6
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:08:17 2010 +0000

    pipebuffer: use transfer flag

commit 575b35ee6b683d77095ef21c573c1de207107e79
Merge: f29ac73 9fc6c8b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 22:03:25 2010 +0000

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/drivers/llvmpipe/lp_texture.c
     src/gallium/drivers/r300/r300_context.c
     src/gallium/drivers/r300/r300_texture.c
     src/gallium/winsys/drm/radeon/core/radeon_buffer.h

commit f29ac73f3f626d5779a627b7fa6fecdb60a35aab
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 18:37:25 2010 +0000

    cell: attempt to convert to pipe_resources

    Can't even compile test this driver.

commit 484b1947f4af81bab60b41f21c3c23ea6f67488c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 17:25:50 2010 +0000

    nvfx: restore usage of pipe_winsys

    The interface that cannot be killed...

commit ac76ac6eb30f4f9aa9f5733d60358b357925953a
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 17:25:10 2010 +0000

    nv50: fix warning

commit 9683f4423449fa5acf6c019c571223650473bd82
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 17:14:31 2010 +0000

    util: restore u_simple_screen, nouveau still relies on it

commit 961cbcb62232689c959965384c6aa9b8eca697c1
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 16:51:54 2010 +0000

    nouveau: convert nvfx and nv50 to pipe_resources

    Compile tested only.

    This was a deeper change than I was hoping for, due to the
    layering of the pipe_texture implementation in each driver on
    top of a shared pipe_buffer implementation in the shared code.

    Have modified the shared code to act as a set of convenience
    routines operating on nouveau_bo objects.

    Each driver now uses the u_resource_vtbl technique to split the
    implementation of pipe_resources between the existing miptree code
    for textures and a new, minimal buffer implementation in each
    driver.

    Eventually these should be combined, not least because APIs are now
    allowing things like binding buffer resources as textures and render
    targets.

commit 18ba74016db13b23282f5033ee37b628a12ee566
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 10:02:54 2010 +0000

    r300: fix compilation after merge

    Also build r300 by default.

commit eb9c0175c8e4baca3fcb0b8364f83ceba9d74e0d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 09:59:49 2010 +0000

    st/vega: fix up after merge

commit ea8dd1d4ae7b58c9315c3491046ef3852ddd3377
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 09:59:44 2010 +0000

    aux: remove unused piperesource helpers

commit be7af29d3ad1a10409b0ea689d882cf30a4e1d62
Merge: d22c2c6 12deb9e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 21 09:54:53 2010 +0000

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/auxiliary/cso_cache/cso_context.c
     src/gallium/auxiliary/cso_cache/cso_context.h
     src/gallium/drivers/r300/r300_context.c
     src/gallium/drivers/r300/r300_render.c
     src/gallium/drivers/r300/r300_state.c
     src/gallium/drivers/r300/r300_state_derived.c
     src/gallium/state_trackers/vega/api_filters.c
     src/gallium/state_trackers/vega/image.c
     src/gallium/state_trackers/vega/image.h
     src/gallium/state_trackers/vega/mask.c
     src/gallium/state_trackers/vega/mask.h
     src/gallium/state_trackers/vega/paint.c
     src/gallium/state_trackers/vega/paint.h
     src/gallium/state_trackers/vega/renderer.c
     src/gallium/state_trackers/vega/renderer.h
     src/gallium/state_trackers/vega/shader.c
     src/gallium/state_trackers/vega/vg_context.h
     src/gallium/state_trackers/vega/vg_tracker.c
     src/mesa/state_tracker/st_manager.c

commit d22c2c6cb23a063e3334a165d0c5c3d73f05d234
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 20 11:48:54 2010 +0000

    drm/r300: update for r300g pipe_resources conversion

    Remove old files that related to pipe_buffers but weren't being
    built.  Hopefully this is correct.

commit f07b2c836958bee5796899123eca4ed05ac6242b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 20 11:47:03 2010 +0000

    r300: convert to pipe_resources

    Do a very shallow conversion - basically keeping the existing
    buffer and texture code intact and using a vtbl struct
    inside our resource struct to select between the two implementations.

    The buffer and texture treatments could be further merged without
    much effort, but try to keep the existing code working at this point.

commit feca9c3ca62daaf0d8745370106d4e3b22340c49
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 06:00:34 2010 +0000

    gallium: update new merges to pipe_resource

commit 1cad983eac77a0c5333e6a3ce92b90ac87407714
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 06:00:19 2010 +0000

    drm/sw: update new merges to pipe_resource

commit 191d39490ed792c569f98d42cf05891b264f71f8
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 06:00:01 2010 +0000

    vg: update new merges to pipe_resource

commit b727c59bc44812ad503d9390505c92b738a5b8b0
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 05:59:38 2010 +0000

    llvmpipe: update new merges to pipe_resource

commit 5f4b64b37fdcd70162c382b2ebbd494bef751dbd
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 05:59:23 2010 +0000

    brw: pipe_resource fixes

commit d4aca209f531f1b65bf706ce1e5fc0375b587eb6
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 05:59:06 2010 +0000

    util: update new merges to pipe_resource

commit cf6bef0afee10763c78509a3d17e9a6e49bcd3c8
Merge: 1997231 6de8e56
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 18 05:38:50 2010 +0000

    Merge commit 'origin/master' into gallium-resources

commit 1997231916144485c3c4a36f53eda39fce460272
Merge: ad88ac7 e1ee3ea
Author: Keith Whitwell <keithw@vmware.com>
Date:   Wed Mar 17 08:46:38 2010 +0000

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/auxiliary/Makefile
     src/gallium/auxiliary/util/u_blit.c
     src/gallium/auxiliary/util/u_blit.h
     src/gallium/auxiliary/util/u_gen_mipmap.c
     src/gallium/auxiliary/util/u_gen_mipmap.h
     src/mesa/state_tracker/st_cb_texture.c
     src/mesa/state_tracker/st_gen_mipmap.c

commit ad88ac79034a91670940276e722bdd398d5c9023
Merge: 77bc770 8cdfd12
Author: Keith Whitwell <keithw@vmware.com>
Date:   Tue Mar 16 09:13:07 2010 +0000

    Merge branch 'gallium-sampler-view' into gallium-resources

    Conflicts:
     src/gallium/auxiliary/cso_cache/cso_context.c
     src/gallium/auxiliary/util/u_blit.c
     src/gallium/drivers/llvmpipe/lp_texture.c
     src/gallium/drivers/softpipe/sp_texture.c
     src/mesa/state_tracker/st_cb_fbo.c
     src/mesa/state_tracker/st_framebuffer.c
     src/mesa/state_tracker/st_texture.c

commit 77bc770c991ea025c82eaa4e0e2390efd825d96d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Mon Mar 15 22:21:48 2010 +0000

    util: missing file

commit f83c91db8ae63a3c3a34ff21492427a5663fb760
Merge: c1d4774 42910eb
Author: Keith Whitwell <keithw@vmware.com>
Date:   Mon Mar 15 09:48:58 2010 +0000

    Merge commit 'origin/gallium-sampler-view' into gallium-resources

    Conflicts:
     src/gallium/drivers/nv40/nv40_transfer.c
     src/gallium/drivers/nvfx/nvfx_transfer.c
     src/gallium/drivers/trace/tr_drm.c

commit dd7ba1378fc50710667724d30d6d4cf1125ad61e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 23:54:36 2010 +0000

    gallium: start a cleanup of buffer_usage

    Remove fairly meaningless CPU/GPU READ/WRITE flags and
    replace with proper usages.

commit c1d4774187189f4af8ff421b210824f3d53ceefb
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 23:05:45 2010 +0000

    llvmpipe: don't FREE userbuffer data

commit 9bfa07afe179f8060e7beefb754a29c4d9c6e349
Merge: 65757a1 08cddfe
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 22:54:51 2010 +0000

    Merge commit 'origin/master' into gallium-resources

    Conflicts:
     src/gallium/drivers/llvmpipe/lp_rast.c
     src/gallium/drivers/llvmpipe/lp_scene.c
     src/gallium/drivers/llvmpipe/lp_texture.c
     src/gallium/drivers/llvmpipe/lp_texture.h
     src/gallium/drivers/softpipe/sp_texture.c
     src/gallium/drivers/svga/svga_screen_texture.c

commit 65757a143f8e3fcd7afbc1ff92db44a823edf46c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 22:41:17 2010 +0000

    svga: build fixes

commit 2f5435220501d4b3050cab2bb1dce6174cd13ff6
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 22:39:25 2010 +0000

    gallivm: build fix

commit 42642ec0984107d82b740711f2debbf38457a06e
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 22:38:33 2010 +0000

    llvmpipe: convert to pipe_resources

commit 7bbcb21e20cb545ef8dd5fc61d67ed931c69e813
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 22:19:30 2010 +0000

    gallivm: convert to pipe_resources

commit 88ae0d04610ca52649b42e32141a52af6d5a739b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 21:01:22 2010 +0000

    configs: build svga

commit 0e112bc69828e65085ebfaef895ecd78fe53f1c4
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 21:01:17 2010 +0000

    gallium: restore PIPE_BUFFER_USAGE_CUSTOM

commit 102aca688b95c976b7178b84092fba7d041ff9d2
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 21:00:41 2010 +0000

    util: more transfer helpers

commit a79f6a4a0836fc64c07f9aeec21d914474fe3649
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 20:59:36 2010 +0000

    svga: convert to use pipe_resrource

    As with others so far, a fairly shallow conversion.

commit 087fb54492fa5e3baf040c5efbf7dacd98a8849b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 18:38:08 2010 +0000

    brw: fix function name

commit cfc9dd707d16e06fd23b6926da3a6e2269f31dc8
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 18:19:06 2010 +0000

    gallium: enable brw compile

commit 8a5b86d76bdd3c7de63322423f59940a4dc2ee25
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 18:18:50 2010 +0000

    brw: compiles with pipe_resource

commit 563ca458b548c41ca4dca559354c16ca1a80d009
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 18:18:42 2010 +0000

    i915: hook up userbuffer create

commit b5095b48247b6020e36cc942ac145c3fccbe9a19
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 17:20:51 2010 +0000

    i915: use helpers for is_resource_referenced

commit d5392bdc6d70002acf9c5bac0fde14ba405c4d84
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 17:20:38 2010 +0000

    util: helpers for is_resource_referenced

commit 2f3492a5aefbb2e745f6700d8e910ebb5cbb98cf
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 17:08:50 2010 +0000

    i915: remove buffer.c again

commit 1373a35b65fcc25ec6cdfea2703bbb3417de2c6d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 17:08:34 2010 +0000

    i915: add new files to scons

commit 0251612d70e57fe38e10e75915b394631d224f2c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 16:38:29 2010 +0000

    i915: compiling with pipe_resources

commit 9a0235864252929a8eedd44dbd2fe30fe54c531d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 13:51:16 2010 +0000

    gallium: remove inline_read transfer

commit a6ba315e25793e0c228d3a4ae2f8201634dc9ff0
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 13:50:32 2010 +0000

    trace: get running

    Some dumping will be incorrect or disabled, but it runs without
    crashing

commit 2133f1d90aa919662a8420a0cf3b4557e6ec1afd
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 13:49:42 2010 +0000

    gallium: remove the inline_read transfer

    There aren't enough users of this to justify it.

commit bccaf1fa30881f6b4fb189a9b74fc7af79c3b481
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 12:30:37 2010 +0000

    identity: hook up inline transfer operations

commit e4c152a344f2f53c842b810724a2ae7cb4554f58
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 12:21:54 2010 +0000

    gallium: build trace and identity

commit 0b5a311db78852fa9fd021e17b5968a1e0436b49
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 12:21:36 2010 +0000

    gallium: add more of the transfer state to pipe_transfer

    Not really sure if recording all the arguments to the
    create_{transfer,texture,surface,etc} functions in the result of those
    calls is a great idea, but it seems we're fairly dependent on it
    throughout the code.

commit a23985c26eafe76b0a7dacc892e50cb589f211fe
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 12:19:46 2010 +0000

    identity: compiles with pipe_resources

commit d0d630944304c208f6dade6ef8836763ee2bc7b4
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 12:13:02 2010 +0000

    trace: compiles with pipe_resources

commit a4451ea459cc8bfc915fe6aed2891b90854b6c9d
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:39:50 2010 +0000

    softpipe: give userbuffers a format other than NONE

    Most mesa demos working

commit 32bb1bd4ba29884a4ecfa11c8441d33dfceabcef
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:39:21 2010 +0000

    util: correct argument order in pipe_buffer_map

commit 7e2696c06445282feb781047277b260308760a33
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:32:55 2010 +0000

    softpipe: transfer flush

commit a0543b13c042e3c1142522d9d136f16fd4cabf78
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:32:13 2010 +0000

    util: noop implementation of transfer_flush_region

commit ce418533be752dbeb164e7ff82a99483048e482b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:26:07 2010 +0000

    gallium: softpipe runs gears with pipe_resources

commit bfda4f2eb34498e4b7f3c608d30fccff6bb9651b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 11:25:48 2010 +0000

    util: get clip_tile working again

commit f5ef219c3bed62b6a0da842e675fae16268e0fbe
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 09:43:20 2010 +0000

    softpipe: use u_transfer helpers

commit 072957aab25affecf0702e925310e46c694a5ee4
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 09:42:46 2010 +0000

    util: helpers for inline transfers

commit 9c45561fb0d7a52400093bcb2ce5f727fafd7777
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 09:42:25 2010 +0000

    util: fix typo calculating transfer box

commit f3e98fd47f36804d019a684d49ff230df3ab0cf5
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 09:25:46 2010 +0000

    st/vega: convert to pipe_resource

commit d1b7b00afc944f6499c83d676c7642115d62a62c
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sun Mar 14 08:37:56 2010 +0000

    gallium: begin converting drivers to pipe_resource

    Work in progress...

commit 51c25117f5d6da1926a2be5ecc66677952a8abf0
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 13 20:16:27 2010 +0000

    gallium: work in progress on layering resources on top of old textures

    Helper code in an aux module to avoid rewriting all the drivers.

commit fb6764d3ce95c55aa78af2f1c8cbb17b79ce1ba2
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 13 19:19:09 2010 +0000

    heaps of wip

commit ee6b3bc730fcdaf8da3646d62f04578ec06d36a1
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 13 16:38:02 2010 +0000

    wip2

commit 1830880212445189fe267d615075239ed17c7cc0
Merge: 90b4045 47bfbd4
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 13 15:14:03 2010 +0000

    Merge branch 'gallium-sampler-view' into gallium-resources

    Conflicts:
     src/gallium/include/pipe/p_context.h
     src/mesa/state_tracker/st_atom_texture.c
     src/mesa/state_tracker/st_cb_bitmap.c
     src/mesa/state_tracker/st_cb_drawpixels.c
     src/mesa/state_tracker/st_cb_texture.c
     src/mesa/state_tracker/st_context.c
     src/mesa/state_tracker/st_context.h
     src/mesa/state_tracker/st_texture.h

commit 90b4045fbc0a093fcd04efba7e045ec259c490b8
Author: Keith Whitwell <keithw@vmware.com>
Date:   Sat Mar 13 14:52:43 2010 +0000

    wip

14 years agor300g: align the height of NPOT textures to POT
Marek Olšák [Fri, 9 Apr 2010 23:09:40 +0000 (01:09 +0200)]
r300g: align the height of NPOT textures to POT

Needed by the CS checker.

14 years agor300g: do not use tiling for scanout buffers
Marek Olšák [Fri, 9 Apr 2010 22:10:56 +0000 (00:10 +0200)]
r300g: do not use tiling for scanout buffers

14 years agoglx: Support direct rendering pbuffers
Kristian Høgsberg [Fri, 9 Apr 2010 21:16:33 +0000 (17:16 -0400)]
glx: Support direct rendering pbuffers

We've supported indirect rendering pbuffers for a while, but not direct
rendering pbuffers.  The way we do this is by creating a hidden pixmap
and wrap that in a GLX pbuffer.  This only works when we have DRI2 on
the server, but if the server doesn't have DRI2, it won't expose configs
with pbuffer bits enabled.

14 years agoglx: Fix config chooser logic for 'mask' matching
Kristian Høgsberg [Fri, 9 Apr 2010 02:09:11 +0000 (22:09 -0400)]
glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

  "Only GLXFBConfigs for which the set bits of attribute include all
   the bits that are set in the requested value are
   considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute.  For example, an
application asking for

  GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoFix copyright headers.
Chia-I Wu [Fri, 9 Apr 2010 17:09:04 +0000 (01:09 +0800)]
Fix copyright headers.

Update the warranty disclaimer to use the more general "THE AUTHORS OR
COPYRIGHT HOLDERS".  This is done manually on files created by me.  Hope
that I do not miss anything.

14 years agost/egl: Fix a typo in determining the render buffer.
Chia-I Wu [Fri, 9 Apr 2010 15:38:12 +0000 (23:38 +0800)]
st/egl: Fix a typo in determining the render buffer.

14 years agollvmpipe: fix transposed stencil ref / values comparison
Brian Paul [Fri, 9 Apr 2010 16:52:48 +0000 (10:52 -0600)]
llvmpipe: fix transposed stencil ref / values comparison

14 years agoMerge branch '7.8'
Brian Paul [Fri, 9 Apr 2010 16:09:24 +0000 (10:09 -0600)]
Merge branch '7.8'

14 years agost/mesa: new assertions to check array indexes
Brian Paul [Fri, 9 Apr 2010 16:08:27 +0000 (10:08 -0600)]
st/mesa: new assertions to check array indexes

14 years agomesa: fix instruction indexing bugs
Brian Paul [Fri, 9 Apr 2010 16:03:31 +0000 (10:03 -0600)]
mesa: fix instruction indexing bugs

We were looping over instructions but only looking at the 0th instruction's
opcode.

Fixes fd.o bug 27566.

14 years agoutil: Fix typo in earlier commit.
José Fonseca [Fri, 9 Apr 2010 15:56:18 +0000 (16:56 +0100)]
util: Fix typo in earlier commit.

14 years agoutil: ubyte_to_float and float_to_ubyte whenever possible.
José Fonseca [Fri, 9 Apr 2010 15:53:07 +0000 (16:53 +0100)]
util: ubyte_to_float and float_to_ubyte whenever possible.

More accurate results.

We should probably generalize these functions for more cases.

14 years agoutil: Get all depth stencil tests passing.
José Fonseca [Fri, 9 Apr 2010 15:30:52 +0000 (16:30 +0100)]
util: Get all depth stencil tests passing.

Note the tests don't test all the paths, in particular stride, and
ensuring the old value is preserved.

14 years agoutil: Add missing break statement.
José Fonseca [Fri, 9 Apr 2010 14:25:55 +0000 (15:25 +0100)]
util: Add missing break statement.

14 years agoutil: Use consistent symbols in pack generator.
José Fonseca [Fri, 9 Apr 2010 13:16:01 +0000 (14:16 +0100)]
util: Use consistent symbols in pack generator.

14 years agoutil: Reorder format tests -- group by format.
José Fonseca [Fri, 9 Apr 2010 13:14:54 +0000 (14:14 +0100)]
util: Reorder format tests -- group by format.

14 years agoutil: Add dedicated depth-stencil packing/unpacking functions.
José Fonseca [Fri, 9 Apr 2010 13:03:02 +0000 (14:03 +0100)]
util: Add dedicated depth-stencil packing/unpacking functions.

Depth-stencil manually written given that each one is very close to
be a special case.

u_format_zs.c's still untested.

14 years agogallium/unit: Silence warnings.
José Fonseca [Thu, 8 Apr 2010 21:45:44 +0000 (22:45 +0100)]
gallium/unit: Silence warnings.

14 years agoscons: Set -gstabs for C++ too.
José Fonseca [Thu, 18 Mar 2010 15:51:11 +0000 (15:51 +0000)]
scons: Set -gstabs for C++ too.

14 years agost/xorg: Fix thinko.
Corbin Simpson [Fri, 9 Apr 2010 13:48:04 +0000 (06:48 -0700)]
st/xorg: Fix thinko.

14 years agonouveau: Import latest nouveau_class.h from renouveau
Ben Skeggs [Fri, 9 Apr 2010 10:58:29 +0000 (20:58 +1000)]
nouveau: Import latest nouveau_class.h from renouveau

And fix nv50_screen.c to compile against the updated header.

14 years agost/xorg: Fix bad paramf.
Corbin Simpson [Fri, 9 Apr 2010 10:38:23 +0000 (03:38 -0700)]
st/xorg: Fix bad paramf.

Should be an integer param, according to docs.

14 years agor300g: Fill out dummy fence functions.
Corbin Simpson [Fri, 9 Apr 2010 10:37:53 +0000 (03:37 -0700)]
r300g: Fill out dummy fence functions.

xorg st needs them.

14 years agoutil: Include u_debug for debug_print_format.
Corbin Simpson [Tue, 24 Nov 2009 15:42:44 +0000 (07:42 -0800)]
util: Include u_debug for debug_print_format.

Caused fun linker errors on r600g.

14 years agost/egl: Move probe interface to native_probe.h.
Chia-I Wu [Fri, 9 Apr 2010 09:49:55 +0000 (17:49 +0800)]
st/egl: Move probe interface to native_probe.h.

native.h is getting a little messy over time.

14 years agost/egl: Remove pbuffer from the native interface.
Chia-I Wu [Fri, 9 Apr 2010 09:27:06 +0000 (17:27 +0800)]
st/egl: Remove pbuffer from the native interface.

A pbuffer is an EGL resource.  It does not need a native display to
create.

14 years agoutil: Set DXTN_LIBNAME to libtxc_dxtn.dylib on Mac OS X.
Vinson Lee [Fri, 9 Apr 2010 07:40:15 +0000 (00:40 -0700)]
util: Set DXTN_LIBNAME to libtxc_dxtn.dylib on Mac OS X.

14 years agodocs: link to 7.8.2 release notes
Brian Paul [Thu, 8 Apr 2010 19:11:05 +0000 (13:11 -0600)]
docs: link to 7.8.2 release notes

14 years agodocs: initial 7.8.2 release notes
Brian Paul [Thu, 8 Apr 2010 19:10:51 +0000 (13:10 -0600)]
docs: initial 7.8.2 release notes

14 years agoprogs/tests: added some debug code (disabled)
Brian Paul [Thu, 8 Apr 2010 19:09:01 +0000 (13:09 -0600)]
progs/tests: added some debug code (disabled)

14 years agost/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression
Brian Paul [Thu, 8 Apr 2010 19:05:35 +0000 (13:05 -0600)]
st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression

Commit 1454f20a991ddda35f1a2ffda953012078b407ba caused the regression.
When the vertex shader emitted both a texcoord and color we were grabbing
the wrong vertex attributes.  Fix the draw_quad() code to put texcoords
in slot[1] and color in slot[2].  That's a bit cleaner than changing
the vertex shader code.

Tested with progs/tests/zreaddraw.c

14 years agoutil: Support PIPE_FORMAT_B4G4R4X4_UNORM and PIPE_FORMAT_R8G8B8X8_UNORM.
José Fonseca [Thu, 8 Apr 2010 18:48:02 +0000 (19:48 +0100)]
util: Support PIPE_FORMAT_B4G4R4X4_UNORM and PIPE_FORMAT_R8G8B8X8_UNORM.

14 years agogallium: Add a couple more of D3D9 formats forgotten earlier.
José Fonseca [Thu, 8 Apr 2010 18:47:40 +0000 (19:47 +0100)]
gallium: Add a couple more of D3D9 formats forgotten earlier.

14 years agointel: Call intel_prepare_render() in intelClear()
Li Peng [Thu, 8 Apr 2010 17:52:55 +0000 (13:52 -0400)]
intel: Call intel_prepare_render() in intelClear()

Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.

14 years agoutil: (Almost) universal format translation function.
José Fonseca [Thu, 8 Apr 2010 18:03:05 +0000 (19:03 +0100)]
util: (Almost) universal format translation function.

Untested.

14 years agoutil: Describe, implement, and test the new D3D9 color formats.
José Fonseca [Thu, 8 Apr 2010 17:55:51 +0000 (18:55 +0100)]
util: Describe, implement, and test the new D3D9 color formats.

14 years agogallium: Add missing D3D9 color formats.
José Fonseca [Thu, 8 Apr 2010 17:51:45 +0000 (18:51 +0100)]
gallium: Add missing D3D9 color formats.

14 years agoutil: is_array/mixed/etc is only meaningful for plain formats.
José Fonseca [Thu, 8 Apr 2010 16:51:31 +0000 (17:51 +0100)]
util: is_array/mixed/etc is only meaningful for plain formats.

14 years agoutil: Keep const keyword when unpacking formats.
José Fonseca [Thu, 8 Apr 2010 16:50:46 +0000 (17:50 +0100)]
util: Keep const keyword when unpacking formats.

14 years agoutil: Reorder the code generated function so that they are grouped by format.
José Fonseca [Thu, 8 Apr 2010 15:24:43 +0000 (16:24 +0100)]
util: Reorder the code generated function so that they are grouped by format.

Makes it easier to copy and paste.

14 years agointel: Call intel_prepare_render() in intelClear()
Li Peng [Thu, 8 Apr 2010 17:52:55 +0000 (13:52 -0400)]
intel: Call intel_prepare_render() in intelClear()

Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.

14 years agodraw llvm: hook up the generated function into the draw elts path
Zack Rusin [Thu, 8 Apr 2010 14:53:21 +0000 (10:53 -0400)]
draw llvm: hook up the generated function into the draw elts path

we were only using the jited function in the linear case, now drawelts
correctly uses the same path. it results in a significant gain in
real world apps (openarena went from 23fps to 29fps)

14 years agodraw: Fix vertex buffer indexation.
José Fonseca [Thu, 8 Apr 2010 10:00:42 +0000 (11:00 +0100)]
draw: Fix vertex buffer indexation.

14 years agoutil: Don't call util_dl_close(library) when util_format_s3tc_init is successful."
José Fonseca [Thu, 8 Apr 2010 09:36:16 +0000 (10:36 +0100)]
util: Don't call util_dl_close(library) when util_format_s3tc_init is successful."

Otherwise the library will be unloaded and function pointers become invalid.

This reverts commit bc2bc0306e4dd8c56bd66a8aabf2433f6689653d.

14 years agoutil: util_dl_close(library) before exiting util_format_s3tc_init.
Vinson Lee [Thu, 8 Apr 2010 07:52:35 +0000 (00:52 -0700)]
util: util_dl_close(library) before exiting util_format_s3tc_init.

14 years agodraw llvm: Remove unnecessary header.
Vinson Lee [Thu, 8 Apr 2010 07:30:40 +0000 (00:30 -0700)]
draw llvm: Remove unnecessary header.

14 years agollvmpipe: Remove unnecessary header.
Vinson Lee [Thu, 8 Apr 2010 07:18:46 +0000 (00:18 -0700)]
llvmpipe: Remove unnecessary header.

14 years agoMerge remote branch 'origin/7.8'
Dave Airlie [Thu, 8 Apr 2010 06:48:41 +0000 (16:48 +1000)]
Merge remote branch 'origin/7.8'

Conflicts:
Makefile
configs/default
src/mesa/main/version.h

14 years agost/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.
Chia-I Wu [Mon, 5 Apr 2010 02:06:52 +0000 (10:06 +0800)]
st/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.

When the format is __DRI_TEXTURE_FORMAT_RGB, the texture should be
treated as if there is no alpha channel.

14 years agotexenvprogram: fix for ARB_draw_buffers.
Dave Airlie [Sat, 3 Apr 2010 03:34:29 +0000 (13:34 +1000)]
texenvprogram: fix for ARB_draw_buffers.

piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agodraw llvm: highly reduce the compilation times for draw llvm
Zack Rusin [Wed, 7 Apr 2010 21:46:55 +0000 (17:46 -0400)]
draw llvm: highly reduce the compilation times for draw llvm

our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.

14 years agogallivm: Get the format translation logic write.
José Fonseca [Wed, 7 Apr 2010 21:17:07 +0000 (22:17 +0100)]
gallivm: Get the format translation logic write.

14 years agoutil: Support fixed formats conversion.
José Fonseca [Wed, 7 Apr 2010 21:16:18 +0000 (22:16 +0100)]
util: Support fixed formats conversion.

14 years agoutil: Add copyright header to u_half.h
José Fonseca [Wed, 7 Apr 2010 20:00:18 +0000 (21:00 +0100)]
util: Add copyright header to u_half.h

14 years agoutil: Remove the half typedef from p_compiler.h.
José Fonseca [Wed, 7 Apr 2010 20:00:05 +0000 (21:00 +0100)]
util: Remove the half typedef from p_compiler.h.

Unnecessary, and doesn't even guarantee size.

14 years agollvmpipe: Add missing include.
José Fonseca [Wed, 7 Apr 2010 19:55:31 +0000 (20:55 +0100)]
llvmpipe: Add missing include.

14 years agoutil: Use stubs for the dynamically loaded S3TC functions.
José Fonseca [Wed, 7 Apr 2010 19:47:38 +0000 (20:47 +0100)]
util: Use stubs for the dynamically loaded S3TC functions.

Loosely based on Luca Barbieri's commit
52e9b990a192a9329006d5f7dd2ac222effea5a5.

14 years agodraw: Fix MSVC build (snprintf->util_snprintf).
José Fonseca [Wed, 7 Apr 2010 19:41:09 +0000 (20:41 +0100)]
draw: Fix MSVC build (snprintf->util_snprintf).

14 years agoutil: Remove u_tile.c YCbCr's.
José Fonseca [Wed, 7 Apr 2010 18:58:18 +0000 (19:58 +0100)]
util: Remove u_tile.c YCbCr's.

Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.

14 years agoutil: Implement YUV and subsampled RGB format conversion.
José Fonseca [Wed, 7 Apr 2010 18:47:24 +0000 (19:47 +0100)]
util: Implement YUV and subsampled RGB format conversion.

14 years agodraw: init draw->pt.middle.general = NULL just to be safe
Brian Paul [Wed, 7 Apr 2010 13:09:52 +0000 (07:09 -0600)]
draw: init draw->pt.middle.general = NULL just to be safe

This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).

14 years agollvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.
José Fonseca [Wed, 7 Apr 2010 12:49:29 +0000 (13:49 +0100)]
llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.

14 years agor300: Initialize compiler.max_temp_regs for blits.
Michel Dänzer [Wed, 7 Apr 2010 09:21:15 +0000 (11:21 +0200)]
r300: Initialize compiler.max_temp_regs for blits.

Blits were broken since commit e41a64591bf1a74465bf0adc7d35c991c4cfb4fe
('r300/compiler: make the max number of fragment shader temporaries
adjustable').

14 years agodraw llvm: Remove unnecessary headers.
Vinson Lee [Wed, 7 Apr 2010 08:04:45 +0000 (01:04 -0700)]
draw llvm: Remove unnecessary headers.

14 years agogallium: Add files to Makefile.
Vinson Lee [Wed, 7 Apr 2010 07:45:40 +0000 (00:45 -0700)]
gallium: Add files to Makefile.

This was missed in commit ae69f9fbf0a1aab7186e5b644085a5fe5aea99af.
New files from the gallium_draw_llvm merge were added to SCons but
not make.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Wed, 7 Apr 2010 06:48:00 +0000 (23:48 -0700)]
llvmpipe: Remove unused variable.

14 years agonouveau: allow multiple simultaneous maps of a pipe_transfer
Ben Skeggs [Wed, 7 Apr 2010 05:41:17 +0000 (15:41 +1000)]
nouveau: allow multiple simultaneous maps of a pipe_transfer

I'm not entirely convinced we want this behaviour (the underlying nouveau_bo
doesn't support it either), but since certain parts of the mesa state
tracker appear to require it lets make it work for now.

14 years agonv50: fix assertion that caused piglit texturing/texrect-many to fail
Ben Skeggs [Wed, 7 Apr 2010 05:06:59 +0000 (15:06 +1000)]
nv50: fix assertion that caused piglit texturing/texrect-many to fail

14 years agoscons: define DRAW_LLVM if we're building it
Zack Rusin [Wed, 7 Apr 2010 02:41:11 +0000 (22:41 -0400)]
scons: define DRAW_LLVM if we're building it

14 years agodraw llvm: disable printing of the LLVM ir
Zack Rusin [Wed, 7 Apr 2010 00:27:17 +0000 (20:27 -0400)]
draw llvm: disable printing of the LLVM ir

14 years agocell: fix build
Marc Dietrich [Tue, 6 Apr 2010 21:44:08 +0000 (23:44 +0200)]
cell: fix build

compile fix for cell driver.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agogallium/draw: add additional DRAW_LLVM check
Brian Paul [Wed, 7 Apr 2010 02:20:13 +0000 (20:20 -0600)]
gallium/draw: add additional DRAW_LLVM check

Fixes build breakage.

14 years agoMerge branch 'gallium_draw_llvm'
Zack Rusin [Wed, 7 Apr 2010 00:09:08 +0000 (20:09 -0400)]
Merge branch 'gallium_draw_llvm'

14 years agollvmpipe: Support S3TC when util_format_s3tc_enabled is set.
José Fonseca [Tue, 6 Apr 2010 21:49:57 +0000 (22:49 +0100)]
llvmpipe: Support S3TC when util_format_s3tc_enabled is set.