summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-18intel: image: bump supported interface version.{merged}/03.DRI_image_interface.intelGwenole Beauchesne1-1/+1
2012-05-18intel: image: handle plane id and offset attributes.Gwenole Beauchesne5-2/+20
2012-05-18intel: image: add support for interlaced structure.Gwenole Beauchesne6-3/+49
2012-05-18intel: image: add support for more formats.Gwenole Beauchesne1-0/+10
Add mappings for: - DRI_IMAGE_FORMAT_R8 - DRI_IMAGE_FORMAT_RG88
2012-05-18intel: implement createImageFromName2().Gwenole Beauchesne1-9/+31
Add basic implementation for createImageFromName2() as the default entry-point. i.e. wrap the older createImageFromName() into the new function.
2012-05-18intel: allow regions hashing per name + plane id.Gwenole Beauchesne3-16/+104
Allow regions to be hashed from a single key (name) and plane id. This is preparatory work to support multitexturing from a single YUV buffer.
2012-05-18intel: introduce new intel_region_alloc_for_handle2().Gwenole Beauchesne2-17/+53
This is an extended version of the original intel_region_alloc_for_handle() function but with extra attributes for future usage. e.g. picture structure, offset to bo base, etc.
2012-05-18dri2: bump DRI image interface version.{merged}/02.DRI_image_interfaceGwenole Beauchesne1-1/+1
2012-05-18dri2: add DRI image plane id and offset to base bo.Gwenole Beauchesne1-1/+4
Add offset argument to createImageFromName2() so that to notify the driver to wrap the DRM buffer at the specified offset. This is useful to wrap a DRM buffer describing a YUV picture into several other images/textures mapping individual Y/U/V components. Also add a plane id attribute to identify what the DRI image actually represents. Valid range is 0..2, inclusive.
2012-05-18dri2: add picture structure.Gwenole Beauchesne1-0/+7
Add picture structure describing the DRI image. i.e. whether the DRI image represents the whole picture or an interleaved (top/bottom field) version. This extension makes it possible to maintain stride and size calculations internal to Mesa, while allowing for texturing interlaced contents. Some implementations can have an explicit means to handle this case, or could emulate it with 2*stride + extra bo offset to the selected field.
2012-05-18dri2: add new image formats.Gwenole Beauchesne1-0/+2
Expose EXT_texture_rg formats (R8, RG88) as DRI image formats.
2012-05-18dri2: add createImageFromName2() hook.Gwenole Beauchesne1-0/+19
Add a new createImageFromName2() hook with image attributes struct so that to reduce the number of arguments passed to the function.
2012-05-18intel: enable GL_EXT_texture_rg for OpenGL ES 2.x.{merged}/01.EXT_texture_rgGwenole Beauchesne1-0/+1
2012-05-18mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.Gwenole Beauchesne3-0/+10
2012-05-18GLES2: upgrade gl2ext.h to version 16994.Gwenole Beauchesne1-12/+372
2012-05-17gallium/tgsi/text: Ensure ret is initialized in parse_immediate_data.Vinson Lee1-0/+4
Fix uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-17radeon/llvm: Fix segfault while lowering lrp intrinsicTom Stellard1-2/+3
2012-05-17radeon/llvm: Add DAG nodes for MIN instructionsTom Stellard6-14/+38
Also, remove the AMDIL MIN* instruction defs.
2012-05-18llvmpipe: Avoid adding floating point zero to flat inputs.José Fonseca1-1/+4
Which could clobber integer inputs, if the addition is not optimized away (e.g., if optimizations are disabled for debugging purposes).
2012-05-18Fix fetching integer inputs.José Fonseca1-0/+8
2012-05-18llvmpipe: Implement TXQ.Olivier Galibert7-6/+227
Piglits test for fragment shaders pass, vertex shaders fail. The actual failure seems to be in the interpolators, and not the textureSize query. Signed-off-by: Olivier Galibert <galibert@pobox.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: José Fonseca <jose.r.fonseca@gmail.com>
2012-05-18llvmpipe: Don't mess with the provoking vertex when inverting a triangle.Olivier Galibert1-5/+40
Fixes a bunch of piglit tests related to flat interpolation of floats. Signed-off-by: Olivier Galibert <galibert@pobox.com> Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
2012-05-17radeon/llvm: Lower lrp intrinsic during ISelTom Stellard3-7/+19
2012-05-17radeon/llvm: Remove AMDIL MAD instruction defsTom Stellard6-7/+14
2012-05-17radeon/llvm: Remove AMDIL MUL_IEEE* instructionsTom Stellard3-7/+3
2012-05-17r600g: Handle MUL_IEEE in r600_bytecode_get_num_operandsTom Stellard1-0/+2
2012-05-17radeon/llvm: Expand fsub during ISelTom Stellard2-11/+2
2012-05-17radeon/llvm: Remove AMDIL floating-point ADD instruction defsTom Stellard5-8/+9
2012-05-17radeon/llvm: Remove AMDIL CMOVLOG* instruction defsTom Stellard4-26/+6
2012-05-17radeon/llvm: Move lowering of ABS_i32 to ISelTom Stellard4-17/+16
2012-05-17radeon/llvm: Remove sub patterns from AMDILInstrPatterns.tdTom Stellard2-21/+1
2012-05-17radeon/llvm: Add custom SDNodes for MAXTom Stellard10-10/+108
We now lower the various intrinsics for max to SDNodes and then use tablegen patterns to lower the SDNodes to instructions.
2012-05-17state_tracker: remove sw_primitive_restart from st_contextJordan Justen2-2/+0
The VBO module now can handle primitive restart in software if required. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17state_tracker: remove software handling of primitive restartJordan Justen1-178/+2
The VBO module now can handle primitive restart in software if required. Therefore this support is no londer required. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17state_tracker: set PrimitiveRestartInSoftware if neededJordan Justen1-0/+1
If the PIPE_CAP_PRIMITIVE_RESTART screen param is not set, then enable PrimitiveRestartInSoftware to enable software primitive restart support in the VBO module. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17vbo: use software primitive restart in the VBO moduleJordan Justen1-6/+37
When PrimitiveRestartInSoftware is set, the VBO module will handle primitive restart scenarios before calling the vbo->draw_prims drawing function. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-05-17mesa: add PrimitiveRestartInSoftware to gl_context.ConstJordan Justen2-0/+8
If set, then the VBO module will handle all primitive restart scenarios before calling the driver draw_prims. Software primitive restart support is disabled by default. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-05-17vbo: add software primitive restart supportJordan Justen4-0/+241
vbo_sw_primitive_restart implements primitive restart in software by splitting primitive draws apart. This is based on similar support in mesa/state_tracker/st_draw.c. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-05-17mesa: Check for framebuffer completeness before looking at the rb.Eric Anholt1-6/+6
Otherwise, an incomplete framebuffer could have a NULL _ColorReadBuffer and we'd deref that. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17mesa: Fix assertion failure when a cube face is not present.Eric Anholt1-1/+2
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Drop the extra NULL specifiction on ir_assignment constructors.Eric Anholt1-21/+14
It's an implied argument, and I don't think being explicit about it helps. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Fix assertion failure on handling switch on uint expressions.Eric Anholt1-1/+1
Fixes piglit glsl-1.30/execution/switch/fs-uint. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Reject non-scalar switch expressions.Eric Anholt1-4/+2
The comment quotes spec saying that only scalar integers are allowed, but we only checked for integer. Fixes piglit switch-expression-const-ivec2.vert Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Let the constructor figure out the types of switch-related expressions.Eric Anholt1-4/+1
I noticed this while unindenting the code. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Fix indentation of switch code.Eric Anholt1-282/+263
I managed to completely trash it in 22d81f15. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17i965/vs: Fix up swizzle for dereference_array of matrices.Eric Anholt1-2/+2
Fixes assertion failure in piglit: vs-mat2-struct-assignment.shader_test vs-mat2-array-assignment.shader_test Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17mesa: Throw error on glGetActiveUniform inside Begin/End.Eric Anholt1-0/+2
Fixes piglit GL_ARB_shader_objeccts/getactiveuniform-beginend. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-05-17glsl: Improve the local dead code optimization to eliminate unused channels.Eric Anholt1-23/+126
Total instructions: 261582 -> 261316 135/2147 programs affected (6.3%) 36752 -> 36486 instructions in affected programs (0.7% reduction) This excludes a tropics shader that now gets 16-wide mode and throws off the numbers. 5 shaders are hurt: two extra MOVs in 4 tropics shaders it looks like because we don't split register names according to independent webs, and one gstreamer shader where it looks like try_rewrite_rhs_to_dst() is falling on its face. This should also help avoid a regression in VSes from idr's ARB programs to GLSL work.
2012-05-17i965/fs: Do more register coalescing by using the interference graph.Eric Anholt2-0/+62
By using the live variables code for determining interference, we can handle coalescing in the presence of control flow, which the other register coalescing path couldn't. Total instructions: 207184 -> 206990 74/1246 programs affected (5.9%) 33993 -> 33799 instructions in affected programs (0.6% reduction) There is a newerth shader that loses out, because of some extra MOVs that now get their dead-code nature obscured by coalescing. This should be fixed by doing better at dead code elimination.
2012-05-17nouveau: place static buffers in VRAM if preferred by the driverChristoph Bumiller6-12/+62