Commit graph

41433 commits

Author SHA1 Message Date
Eric Anholt
f45aea0ec9 mesa: Also report renderbuffer red/green size for GL_RED and GL_RG.
Noticed by code inspection.
2011-01-03 13:28:26 -08:00
Eric Anholt
059cca92a8 mesa: Use the common logic for "is this baseformat a color format?"
When figuring out whether a renderbuffer should be used to set the
visual bits of an FBO, we were missing important baseformats like
GL_RED, GL_RG, and GL_LUMINANCE.
2011-01-03 13:28:24 -08:00
Eric Anholt
beac6ee62a mesa: Allow color renderbuffers besides just RGB and RGBA.
We did so already for textures to do ARB_fbo's
GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and
GL_RG, but this path was missed.
2011-01-03 13:22:38 -08:00
Eric Anholt
2d29349c00 mesa: Update comment about the list of BaseFormats for gl_formats. 2011-01-03 13:22:38 -08:00
Eric Anholt
94ed481131 intel: Handle forced swrast clears before other clear bits.
Fixes a potential segfault on a non-native depthbuffer, and possible
accidental swrast fallback on extra color buffers.
2011-01-03 13:22:38 -08:00
Brian Paul
efbd33aff9 st/mesa: fix renderbuffer pointer check in st_Clear()
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=30694

NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-01-03 14:01:41 -07:00
Brian Paul
65da73c5f8 mesa: s/GLuint/gl_buffer_index/ 2011-01-03 14:01:41 -07:00
Brian Paul
35266fbe4f st/mesa: 80-column wrapping 2011-01-03 14:01:41 -07:00
Brian Paul
337f6e7b0e st/mesa: 80-column wrapping 2011-01-03 14:01:41 -07:00
Chia-I Wu
ada9c78c29 autoconf: Fix --with-driver=xlib --enable-openvg.
st/egl should be enabled with --enable-openvg even the driver is xlib or
osmesa.  Also, GLX_DIRECT_RENDERING should not be defined because libdrm
is not checked.
2011-01-04 01:13:49 +08:00
Chia-I Wu
cba7786954 docs: Add an example for EGL_DRIVERS_PATH.
EGL_DRIVERS_PATH can be set to test EGL without installation.
2011-01-04 00:54:55 +08:00
Dave Airlie
fb03510738 radeon: fix build on non-KMS systems.
Reported on irc by adamk.
2011-01-03 06:03:44 +10:00
Kenneth Graunke
1d40cf57f8 glsl: Really remove unused "instructions" parameter.
I forgot about this file, and it didn't show up until I tried to do
"make builtins" from a clean build.
2011-01-01 12:29:24 -08:00
Kenneth Graunke
81168351a7 glsl: Remove unused "instructions" parameter.
I think was used long ago, when we actually read the builtins into the
shader's instruction stream directly, rather than creating a separate
shader and linking the two.  It doesn't seem to serve any purpose now.
2011-01-01 12:01:54 -08:00
Brian Paul
1eceb9d323 mapi: add missing newline in error message 2010-12-31 16:37:41 -07:00
Brian Paul
e227f4bf50 egl: add missing case in _eglError() 2010-12-31 09:14:25 -07:00
Henri Verbeet
59051ad443 st/mesa: Handle wrapped depth buffers in st_copy_texsubimage(). 2010-12-31 07:49:59 +01:00
Vinson Lee
8d79765feb util: Add forward declarations in u_index_modify.h. 2010-12-30 01:54:35 -08:00
Vinson Lee
8114cf9ad8 tgsi: Clean up header file inclusion in tgsi_text.h. 2010-12-30 01:51:27 -08:00
Vinson Lee
8bfb9061b7 graw: Include p_shader_tokens.h for tgsi_token struct. 2010-12-30 01:49:26 -08:00
Vinson Lee
20a0f34283 tgsi: Clean up header file inclusion in tgsi_sanity.h. 2010-12-30 01:40:53 -08:00
Vinson Lee
79fa5acf26 x86: Clean up header file inclusion in mmx.h. 2010-12-30 01:26:47 -08:00
Vinson Lee
a1cd093a72 tnl: Clean up header file inclusion in t_vertex.h. 2010-12-30 01:05:33 -08:00
Vinson Lee
43c291683c vbo: Clean up header file inclusion in vbo.h. 2010-12-30 00:57:03 -08:00
Vinson Lee
176a8359b9 tnl: Clean up header file inclusion in t_vp_build.h. 2010-12-30 00:50:56 -08:00
Vinson Lee
9db9761874 tnl: Clean up header file inclusion in tnl.h. 2010-12-30 00:46:13 -08:00
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
Eric Anholt
74dffb39c3 i965: Factor out the ir comparision to BRW_CONDITIONAL_* code. 2010-12-28 14:23:52 -08: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
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
Jakob Bornecrantz
23aa3c552c svga, glhd: Remove incorrect assert and add note
Stride can be lower then the size of the attribute.
But should probably be aligned to component size atleast for floats.
2010-12-16 09:44:02 +01:00
Jakob Bornecrantz
1138775d79 svga: Minor debug text fix 2010-12-16 09:44:02 +01:00
Jakob Bornecrantz
c28debbf6f svga: Remove debug print in winsys 2010-12-16 09:44:02 +01:00
Jakob Bornecrantz
486da2cfc0 svga: Correct spelling in swtnl backend 2010-12-16 09:44:01 +01:00
Jakob Bornecrantz
d7ff6dd09c svga: Fix newline at EOF 2010-12-16 09:36:51 +01:00
Jakob Bornecrantz
f75549a9d8 svga: Add Galahad and Softpipe to scons build 2010-12-16 08:53:26 +01:00
Jakob Bornecrantz
0967d77a9a wrapper: Flush pipe on unmap
For drivers that does DMA transfers instead of mapping directly
2010-12-16 08:53:26 +01:00
Jakob Bornecrantz
8b60bf4e9f wrapper: Fix width and height given to map and remove uneeded fields 2010-12-16 08:53:26 +01:00
Jakob Bornecrantz
b7a73c72a6 i915g: Ignore color0 writes all cbufs tgsi property 2010-12-27 00:18:55 +01:00