summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-26gbm: Add back link flags for udev, dl and glapigbm-linkageBenjamin Franzke1-1/+3
2012-01-25i965/gen6/GT1: Increase max_vs_entries to 256.Paul Berry1-1/+1
Previously, max_vs_entries was set to 128 for GT1, and 256 for GT2, based on the PRM (see Vol2, part1, p28). However, Bspec section 1.6.5 indicates that the maximum number of VS entries is 256 for GT1. No piglit regressions on GT1. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-01-25i965/gen6: Fix segfault in transform feedback to DYNAMIC_DRAW buffers.Paul Berry1-1/+4
When storing data in a buffer of type DYNAMIC_DRAW, we don't create a drm_intel_bo for it; instead we store the data in system memory and defer allocation of the GPU buffer until it is needed. Therefore, in brw_update_sol_surface(), we can't just consult the "buffer" field of the intel_buffer_object structure; we need to call intel_bufferobj_buffer() to ensure that the deferred allocation occurs. This parallels a similar fix for gen7 (see commit ba6f4c9). Fixes piglit test EXT_transform_feedback/buffer-usage on gen6. This is a candidate for the 8.0 release branch. Reviewed-by: Eric Anholt <eric@anholt.net>
2012-01-25gbm: fix copy & paste error in gbm_bo_get_handle documentationAnder Conselvan de Oliveira1-1/+1
2012-01-25mesa/st: Assign inputsRead at right (previous) location.José Fonseca1-2/+4
Fixes the src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4032:src_register: Assertion `t->inputMapping[index] < (sizeof(t->inputs)/sizeof(*(t->inputs)))' failed. assertion failure introduced in 697b9945fb0f55428b06821f98fd8621372f81ad
2012-01-25mesa: remove ctx->Const.sRGBCapableMarek Olšák6-8/+3
It always had the same value as ctx->Extensions.EXT_framebuffer_sRGB. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-01-25r600g: handle start_component from stream_output_info when possibleMarek Olšák1-4/+4
2012-01-25r600g: don't expose transform_feedback2 without kernel supportMarek Olšák1-1/+2
2012-01-25mesa: allow exposing GL3 without EXT_texture_integerMarek Olšák5-16/+37
Strictly speaking, it's not legal to expose EXT_texture_integer without EXT_gpu_shader4. It might be even dangerous (apps can assume EXT_gpu_shader4 is available without checking for it). The check in compute_version is removed as well, because that's already covered by GLSLVersion >= 130. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-25mesa: add missing integer alpha formats to _mesa_base_fbo_formatMarek Olšák1-0/+9
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-25st/mesa: require all s3tc formats for EXT_texture_compression_s3tcMarek Olšák1-1/+10
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-25st/mesa: simplify enabling EXT_packed_depth_stencil and ARB_fboMarek Olšák1-16/+5
- use OR to combine bind flags - combine both conditionals into one - move the ARB_fbo enable where it belongs Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-25mesa: remove obsolete comment in version.cMarek Olšák1-1/+0
Pointed out by Brian Paul.
2012-01-25gallium/docs: document more CAPsMarek Olšák1-0/+20
2012-01-25r600g: nuke the fallback for vertex and fragment color clampingMarek Olšák6-53/+1
2012-01-25r300g: nuke the fallback for fragment color clampingMarek Olšák5-36/+0
2012-01-25st/mesa: inline if(1) conditionalMarek Olšák1-219/+215
v2: fix typo
2012-01-25st/mesa: move fragment shader tgsi tokens into st_fp_variantMarek Olšák4-17/+8
The TGSI code may vary depending on the clamp_color bit.
2012-01-25st/mesa: do vertex and fragment color clamping in shadersMarek Olšák22-56/+147
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is the perfect place for a fallback. The exceptions are: - r500 (vertex clamp only) - nv50 (both) - nvc0 (both) - softpipe (both) We also have to take into account that r300 can do CLAMPED vertex colors only, while r600 can do UNCLAMPED vertex colors only. The difference can be expressed with the two new CAPs.
2012-01-25st/xvmc: remove xorg-server dependencyChristian König2-2/+3
Fixing a circular build dependency. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Christian König <deathsimple@vodafone.de>
2012-01-25st/mesa: Fix recurring surfaceless contextsBenjamin Franzke1-2/+4
A current incomplete framebuffer was incorrectly used as a st_framebuffer. When accessing st_framebuffer childs bad things happen: e.g. st_framebuffer::iface was used to check whether its an incomplete fb, instead we need to compare st_framebuffer::Base against mesa_get_incomplete_framebuffer. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44919 Note: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24mesa: Fix CopyTex{Sub,}Image error checks for integer vs non-integer.Eric Anholt1-8/+31
Fixes Intel oglconform negative.typeFormatMismatch.copyteximage. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24mesa: Add missing integer R/RG cases to _mesa_is_color_format().Eric Anholt1-0/+12
This is part of fixing Intel oglconform negative.typeFormatMismatch.copyteximage. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24meta: Detect currently-unsupported integer CopyTexSubImage and complain.Eric Anholt1-0/+5
This code is unprepared for handling integer (particularly, the baseFormat of the TexFormat comes out as GL_RGBA, not GL_RGBA_INTEGER, so the direct call of Driver.ReadPixels crashes due to the int vs non-int error checking not having happened). I'm frankly tempted to convert this code to MapRenderbuffer/MapTexImage rather than doing it as meta ops, now that we have that support. Improves the remaining crash in Intel oglconform for int-textures to just a rendering failure. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24mesa: Add the remaining from/to types for GL_EXT_texture_integer (and R/RG).Eric Anholt2-51/+176
This aborts and crashes in intel oglconform's int-textures into being just rendering failures. Clamping isn't handled yet. v2: Add missing "break". v3: Drop the int/uint distinction, since they don't need different clamping. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com> (v2)
2012-01-24mesa: Add support for glGetTexImage on GL_TEXTURE_1D_ARRAYEric Anholt1-2/+7
Similarly to how we handle this in texstore, we have to remap height to depth so that we MapTextureImage each image layer individually. Fixes part of Intel oglconform's int-textures advanced.fbo.rtt NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24mesa: s/GLuint col/GLint col/ to avoid signed/unsigned comparison warnings.Eric Anholt1-8/+8
Suggested-by: Brian Paul <brianp@vmware.com>
2012-01-24mesa: Add support for glGetTexImage() from integer textures.Eric Anholt1-38/+80
This is a step toward fixing Intel oglconform's int-textures advanced.fbo.rtt. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-24i965/gen6+: Work around GPU hangs with logic ops on integer textures.Eric Anholt1-2/+7
This doesn't result in correct rendering -- GL requires that logic ops work, while the hardware specs say it doesn't do them. I'm not sure how we would want to handle this. NOTE: This is a candidate for the 8.0 branch.
2012-01-24i965/gen6+: Disable blending, alpha test, and dither on integer FBOs.Eric Anholt1-6/+23
Fixes GPU hangs and some rendering failures in piglit EXT_texture_integer/fbo-blending NOTE: This is a candidate for the 8.0 branch.
2012-01-24mesa/gdi: remove wmesa_set_renderbuffer_funcs() functionBrian Paul1-50/+0
The code is no longer relevant. Note: this driver is probably broken now. There's no implementation of ctx->Driver.Map/UnmapRenderbuffer().
2012-01-24dri/swrast: remove obsolete swrast_span.c file from source listBrian Paul1-2/+1
2012-01-24swrast: fix uninitialized variable warningBrian Paul1-1/+1
2012-01-24swrast: make rowStride variable signed in put_z32_values()Brian Paul1-1/+1
As with commit aed5c8299fe47b8e1728f8140d069bc89d3fa947
2012-01-24intel: use swrast code to map/unmap renderbuffers for swrast renderingBrian Paul1-79/+2
2012-01-24mesa: update comments, fix whitespace in dd.hBrian Paul1-21/+14
2012-01-24swrast: remove unused StoreTexel codeBrian Paul4-1187/+183
No longer needed since we do all rendering to texture with the buffer mapping and pixel packing functions.
2012-01-24swrast: use Map/UnmapTextureImage() in framebuffer map/unmap codeBrian Paul1-15/+13
When we're actually rendering into a texture, map the texture image instead of the corresponding renderbuffer. Before, we just copied a pointer from the texture image to the renderbuffer. This change will make the code usable by hardware drivers.
2012-01-24mesa: remove ctx->Driver.Map/UnmapTexture() hooksBrian Paul3-10/+0
No longer used anywhere.
2012-01-24nouveau: stop calling ctx->Driver.Map/UnmapTexture()Brian Paul2-40/+4
And remove unused nouveau_texture_map/unmap()
2012-01-24tnl: remove ctx->Driver.Map/UnmapTexture() callsBrian Paul1-8/+2
ctx->Driver.MapTexture() always points to _swrast_map_texture(). We're already reaching into swrast from t_vb_program.c anyway. This will let us remove the ctx->Driver.Map/UnmapTexture() functions.
2012-01-24swrast: move some renderbuffer functions to s_renderbuffer.cBrian Paul2-121/+121
2012-01-24intel: remove intel_span_supports_format()Brian Paul3-21/+0
It always returned True.
2012-01-24swrast: remove a few extra _mesa_get_format_bytes() callsBrian Paul1-4/+6
2012-01-24mesa: update comments for gl_renderbufferBrian Paul1-16/+9
2012-01-24mesa/swrast/drivers: remove obsolete gl_renderbuffer fieldsBrian Paul1-7/+0
This removes the last of the legacy fields from gl_renderbuffer.
2012-01-24dri/swrast: use swrast_renderbuffer typeBrian Paul2-35/+41
2012-01-24swrast: use swrast_renderbuffer instead of gl_renderbufferBrian Paul9-41/+62
2012-01-24osmesa: use swrast_renderbufferBrian Paul1-42/+45
2012-01-24radeon: derive radeon_renderbuffer from swrast_renderbufferBrian Paul14-64/+73