Marek Olšák
76db330e2c
util: add a way to store translated indices to a user memory in u_index_modify
...
I am about to use the upload buffer in r300g instead.
2010-12-29 18:32:41 +01:00
Marek Olšák
48ed458e87
r300g: support user buffers as constant buffers
2010-12-29 18:32:41 +01:00
Eric Anholt
df4d83dca4
i965: Do lowering of array indexing of a vector in the FS.
...
Fixes a regression in ember since switching to the native FS backend,
and the new piglit tests glsl-fs-vec4-indexing-{2,3} for catching this.
2010-12-28 17:32:20 -08:00
Eric Anholt
54df8e48bc
i965: Fix regression in FS comparisons on original gen4 due to gen6 changes.
...
Fixes 26 piglit cases on my GM965.
2010-12-28 15:35:00 -08:00
Christian König
3a49b567cf
r600g: rearange exports
2010-12-28 23:45:46 +01:00
Eric Anholt
74dffb39c3
i965: Factor out the ir comparision to BRW_CONDITIONAL_* code.
2010-12-28 14:23:52 -08:00
Christian König
c099fcd28a
r600g: optimize unneeded alu moves
2010-12-28 13:09:54 +01:00
Vinson Lee
f3319561a4
glcpp: Add negative tests for redefintions with valueless macros.
2010-12-27 23:20:35 -08:00
Dave Airlie
17004b3954
tgsi_dump: fix assert due to missing property name.
2010-12-28 16:52:19 +10:00
Marek Olšák
33e0b726e8
r300g: rename aos to vertex arrays
2010-12-28 04:52:36 +01:00
Marek Olšák
d9b84017e0
r300g: mark vertex arrays as dirty after a buffer_offset change
...
We shouldn't hit this bug in theory.
NOTE: This is a candidate for the 7.10 branch.
2010-12-28 04:40:05 +01:00
Zhenyu Wang
689aca7822
i965: Fix occlusion query on sandybridge
...
Clear target query buffer fixed occlusion query on sandybridge.
https://bugs.freedesktop.org/show_bug.cgi?id=32167
2010-12-28 11:11:40 +08:00
Zhenyu Wang
59fa8600d8
Revert "i965: upload multisample state for fragment program change"
...
This reverts commit de6fd527a5 .
Revert this workaround as it seems the real trouble is caused by
lineloop, which doesn't require GS convert on sandybridge actually.
2010-12-28 09:36:43 +08:00
Kenneth Graunke
6bb1e4541e
i965: Internally enable GL_NV_blend_square on ES2.
...
Hopefully should fix bug #32520 .
2010-12-27 15:44:52 -08:00
Christoph Bumiller
0cb6d1a4eb
nvc0: reference the vertex buffers
2010-12-27 21:00:40 +01:00
Christoph Bumiller
4fa429c876
nvc0: reenable some shader optimizations
...
CSE and constants folding.
2010-12-27 20:59:53 +01:00
Christian König
f23dce0532
r600g: fix gpr usage intersection and add conditiona code handling
2010-12-27 20:50:05 +01:00
Christian König
22de93b435
r600g: implement register remapping
2010-12-27 17:58:00 +01:00
Christoph Bumiller
a10b1c1204
nvc0: use VTX_ATTR for stride 0 vertex attributes
2010-12-27 13:59:43 +01:00
Christoph Bumiller
e4349027f6
nvc0: implement VRAM buffer transfers with bounce buffers
2010-12-27 13:57:46 +01:00
Christoph Bumiller
abd08f4c01
nvc0: init miptree transfer layer stride
2010-12-27 13:29:10 +01:00
Xiang, Haihao
b832ae8a4a
i965: don't spawn GS thread for LINELOOP on Sandybridge
...
LINELOOP is converted to LINESTRIP at the beginning of the 3D pipeline.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=32596
2010-12-27 17:05:58 +08:00
Kenneth Graunke
634a7dce9c
i965: Flatten if-statements beyond depth 16 on pre-gen6.
...
Gen4 and Gen5 hardware can have a maximum supported nesting depth of 16.
Previously, shaders with control flow nested 17 levels deep would
cause a driver assertion or segmentation fault.
Gen6 (Sandybridge) hardware no longer has this restriction.
Fixes fd.o bug #31967 .
2010-12-27 00:59:31 -08:00
Kenneth Graunke
9ac6a9b2fa
glsl: Support if-flattening beyond a given maximum nesting depth.
...
This adds a new optional max_depth parameter (defaulting to 0) to
lower_if_to_cond_assign, and makes the pass only flatten if-statements
nested deeper than that.
By default, all if-statements will be flattened, just like before.
This patch also renames do_if_to_cond_assign to lower_if_to_cond_assign,
to match the new naming conventions.
2010-12-27 00:59:31 -08:00
Christoph Bumiller
780fbecc20
nvc0: respond please inline to PIPE_SHADER_CAP_SUBROUTINES
2010-12-23 15:22:00 +01:00
Christoph Bumiller
96def0c314
nvc0: fix layer stride state
2010-12-23 15:21:36 +01:00
Christoph Bumiller
2c20aae233
nvc0: use most defs/decls from nouveau_pushbuf.h
2010-12-23 15:19:22 +01:00
Christian König
2191d8064e
[g3dvl] fix merge conflicts
2010-12-22 21:38:48 +01:00
Christian König
e179a8bf34
Merge remote branch 'origin/master' into pipe-video
2010-12-22 21:12:24 +01:00
Christian König
1b03996b12
r600g: remove some unneded barriers
2010-12-22 20:50:16 +01:00
Christian König
f853ea0078
[g3dvl] move code around for more optimal shader generation
2010-12-22 20:01:39 +01:00
Christian König
26127d6a2f
r600g: rework literal handling
2010-12-22 17:45:51 +01:00
Vinson Lee
38c8b034e2
i915g: Remove unnecessary header.
2010-12-22 00:57:52 -08:00
Vinson Lee
442fcd0620
llvmpipe: Remove unnecessary headers.
2010-12-22 00:55:41 -08:00
Vinson Lee
013fc33462
r300g: Remove unnecessary headers.
2010-12-22 00:52:05 -08:00
Vinson Lee
f39d0c791a
svga: Remove unnecessary header.
2010-12-22 00:42:23 -08:00
Vinson Lee
a91128030e
st/vega: Remove unnecessary headers.
2010-12-22 00:38:42 -08:00
Henri Verbeet
ca8b4ca478
r600g: Remove the unused "pframebuffer" field from r600_pipe_context.
2010-12-22 09:19:48 +01:00
Henri Verbeet
2fd718d560
r600g: r600_new() and r600_delete() are unused.
2010-12-22 09:19:48 +01:00
Zhenyu Wang
4374703a9b
i965: explicit tell header present for fb write on sandybridge
...
Determine header present for fb write by msg length is not right
for SIMD16 dispatch, and if there're more output attributes, header
present is not easy to tell from msg length. This explicitly adds
new param for fb write to say header present or not.
Fixes many cases' hang and failure in GL conformance test.
2010-12-22 11:08:51 -05:00
Chia-I Wu
445cb9e53b
st/egl: Assorted fixes for dri2_display_get_configs.
...
Set window_bit only when the visual id is greater than zero. Correct
visual types. Skip slow configs as they are not relevant. Finally, do
not return duplicated configs.
2010-12-22 16:05:27 +08:00
Alex Deucher
341d048e45
r600g: remove useless switch statements
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-12-22 01:30:41 -05:00
Chia-I Wu
a31e2e3312
st/egl: Fix eglCopyBuffers.
...
Flush before presenting.
2010-12-22 14:21:47 +08:00
Chia-I Wu
18bc427ade
st/egl: Plug pbuffer leaks.
...
Unreference validated resources or remove unnecessary validations.
2010-12-22 14:12:33 +08:00
Chia-I Wu
0fb2dcc98f
st/egl: Allow single-buffered pixmaps.
...
All single-buffered configs were ignored before to make sure
EGL_RENDER_BUFFER is settable for window surfaces. It is better to
allow single-buffered configs and set EGL_WINDOW_BIT only for
double-buffered ones. This way there can be single-buffered pixmaps.
2010-12-22 14:12:33 +08:00
Dave Airlie
f431e0452b
r600g: drop unused code in evergreen.
...
this code was pretty much duplicated, thanks to Henri Verbeet on irc for
pointing it out.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-22 15:58:29 +10:00
Chia-I Wu
975b7ef92a
st/egl: Remove native_config::samples.
...
Multisample buffers are never requested.
2010-12-22 13:22:36 +08:00
Chia-I Wu
3a93c34828
st/egl: Remove native_config::slow_config.
...
In direct rendering scenario, it is not needed until an EGLDisplay can
support both HW and SW pipe screens.
2010-12-22 13:22:36 +08:00
Chia-I Wu
0364c08d7f
st/egl: Remove unnecessary egl_g3d_find_pixmap_config.
...
It was used to find a compatible config for a given pixmap. Now that a
config is optional for pixmap surface creation, the function is not
needed.
2010-12-22 13:22:36 +08:00
Chia-I Wu
af767ee113
st/egl: Make config optional for create_pixmap_surface.
...
eglCopyBuffers or EGL_KHR_image_pixmap require creating a pixmap surface
without a config. Make it just work without relying on
is_pixmap_supported.
2010-12-22 13:22:36 +08:00