summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-11-19i965: Remove extra \n at the end of every instruction in INTEL_DEBUG=wm.Eric Anholt
2010-11-19i965: Just use memset() to clear most members in FS constructors.Eric Anholt
This should make it a lot harder to forget to zero things.
2010-11-19i965: Fix compute_to_mrf to not move a MRF write up into another live range.Eric Anholt
Fixes glsl-fs-copy-propagation-texcoords-1.
2010-11-19mesa: Include C++ files in the makedepend of DRI drivers.Eric Anholt
2010-11-19glsl: Combine many instruction lowering passes into one.Kenneth Graunke
This should save on the overhead of tree-walking and provide a convenient place to add more instruction lowering in the future. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-11-19glsl: Add ir_quadop_vector expressionIan Romanick
The vector operator collects 2, 3, or 4 scalar components into a vector. Doing this has several advantages. First, it will make ud-chain tracking for components of vectors much easier. Second, a later optimization pass could collect scalars into vectors to allow generation of SWZ instructions (or similar as operands to other instructions on R200 and i915). It also enables an easy way to generate IR for SWZ instructions in the ARB_vertex_program assembler.
2010-11-19glsl: Eliminate assumptions about size of ir_expression::operandsIan Romanick
This may grow in the near future.
2010-11-19glsl: Add ir_unop_sin_reduced and ir_unop_cos_reducedIan Romanick
The operate just like ir_unop_sin and ir_unop_cos except that they expect their inputs to be limited to the range [-pi, pi]. Several GPUs require this limited range for their sine and cosine instructions, so having these as operations (along with a to-be-written lowering pass) helps this architectures. These new operations also matche the semantics of the GL_ARB_fragment_program SCS instruction. Having these as operations helps in generating GLSL IR directly from assembly fragment programs.
2010-11-19dri/nouveau: Clean up magic numbers in get_rt_formatViktor Novotný
Signed-off-by: Viktor Novotný <noviktor@seznam.cz> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-18ir_to_mesa: Generate smarter code for some conditional movesIan Romanick
Condiation moves with a condition of (a < 0), (a > 0), (a <= 0), or (a >= 0) can be generated with "a" directly as an operand of the CMP instruction. This doesn't help much now, but it will help with assembly shaders that use the CMP instruction.
2010-11-18mesa: pass gl_format to _mesa_init_teximage_fields()Brian Paul
This should prevent the field going unset in the future. See bug http://bugs.freedesktop.org/show_bug.cgi?id=31544 for background. Also remove unneeded calls to clear_teximage_fields(). Finally, call _mesa_set_fetch_functions() from the _mesa_init_teximage_fields() function so callers have one less thing to worry about.
2010-11-18mesa: Clean up core.h.Chia-I Wu
Remove version.h and context.h from core.h.
2010-11-18gallium: Add st_context_iface::share to st_api.Chia-I Wu
It will be used to implement wglShareLists. Fill st_context_iface::copy for glXCopyContext as well.
2010-11-18gallium: Add st_api::name.Chia-I Wu
It is the name of the rendering API. This field is informative.
2010-11-18i965: Eliminate dead code more aggressively.Eric Anholt
If an instruction writes reg but nothing later uses it, then we don't need to bother doing it. Before, we were just killing code that was never read after it was ever written. This removes many interpolation instructions for attributes with only a few comopnents used. Improves nexuiz high-settings performance .46% +/- .12% (n=3) on my Ironlake.
2010-11-17mesa: upgrade to glext.h version 66Brian Paul
The type of the num/count parameter to glProgramParameters4[df]vNV() changed so some API dispatch code needed updates too.
2010-11-18i965: Fail on loops on gen6 for now until we write the EU emit code for it.Eric Anholt
2010-11-18i965: Add dumping of the sampler default color.Eric Anholt
2010-11-18i965: Add state dumping for sampler state.Eric Anholt
2010-11-18mesa: Don't spam the console in a debug build unless some spam is requested.Eric Anholt
It's annoying to use test suites under a Mesa debug build because pretty output is cluttered with stderr's continuous reports that you're still using the debug driver.
2010-11-18i965: Shut up spurious gcc warning about GLSL_TYPE enums.Eric Anholt
2010-11-17glsl: Remove the ir_binop_cross opcode.Kenneth Graunke
2010-11-17r600c/evergreen: texture align is group_bytes just like 6xx/7xxAlex Deucher
Default group bytes to 512 on evergreen. Don't query tiling config yet for evergreen, the current info returned is not adequate for evergreen (no way to get bank info).
2010-11-16mesa: minor clean-ups in context codeBrian Paul
2010-11-16mesa: reorder texture_error_check() paramsBrian Paul
To better match other functions.
2010-11-16mesa: 80-column wrappingBrian Paul
2010-11-16mesa: whitespace cleanupsBrian Paul
2010-11-16mesa: fix error messages and minor reindentingBrian Paul
2010-11-15mesa: Add definitions for inverse hyperbolic function on MSVC.Vinson Lee
2010-11-15mesa: add more work-arounds for acoshf(), asinhf(), atahf()Brian Paul
2010-11-15st/mesa: fix glDrawPixels(depth/stencil) bugsBrian Paul
When drawing GL_DEPTH_COMPONENT the usual fragment pipeline steps apply so don't override the depth state. When drawing GL_STENCIL_INDEX (or GL_DEPTH_STENCIL) the fragment pipeline does not apply (only the stencil and Z writemasks apply) so disable writes to the color buffers. Fixes some regressions from commit ef8bb7ada98f1ddc8e2554a7336af5d669cb1290
2010-11-15r600: Evergreen has two extra frac_bits for the sampler LOD state.Henri Verbeet
Note: this is a candidate for the 7.9 branch.
2010-11-15dri/nouveau: Kill a bunch of ternary operators.Francisco Jerez
2010-11-15dri/nouveau: Fix typo.Francisco Jerez
2010-11-15dri/nouveau: Remove nouveau_class.h, finishing switch to rules-ng-ng headersViktor Novotný
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-15dri/nouveau nv20: Use rules-ng-ng headersViktor Novotný
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-15dri/nouveau: nv10: Use rules-ng-ng headersViktor Novotný
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-15dri/nouveau: nv04: Use rules-ng-ng headersViktor Novotný
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-15dri/nouveau: Import headers from rules-ng-ngViktor Novotný
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-15evergreen: set gl_texture_image::TexFormat field in evergreenSetTexBuffer()Brian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=31544 Note: this is a candidate for the 7.9 branch.
2010-11-15r300: set gl_texture_image::TexFormat field in r300SetTexBuffer2()Brian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=31544 Note: this is a candidate for the 7.9 branch
2010-11-15r200: set gl_texture_image::TexFormat field in r200SetTexBuffer2()Brian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=31544 Note: this is a candidate for the 7.9 branch.
2010-11-15r600: set gl_texture_image::TexFormat field in r600SetTexBuffer2()Brian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=31544 Note: this is a candidate for the 7.9 branch.
2010-11-15radeon: set gl_texture_image::TexFormat field in radeonSetTexBuffer2()Brian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=31544 Note: this is a candidate for the 7.9 branch
2010-11-15radeon: fix potential segfault in renderbuffer updateDaniel Lichtenberger
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31617 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-11-14i965: Fix gl_FragCoord inversion when drawing to an FBO.Eric Anholt
This showed up as cairo-gl gradients being inverted on everyone but Intel, where I'd apparently tweaked the transformation to work around the bug. Fixes piglit fbo-fragcoord.
2010-11-13i965: Silence uninitialized variable warning.Vinson Lee
Silences this GCC warning. brw_fs.cpp: In member function 'void fs_visitor::split_virtual_grfs()': brw_fs.cpp:2516: warning: unused variable 'reg'
2010-11-13mesa: Clean up header file inclusion in points.h.Vinson Lee
2010-11-12mesa: consolidate assertions in teximage codeBrian Paul
2010-11-12gallium: add CAPs for indirect addressing and lower it in st/mesa when neededMarek Olšák
Required because ATI and NVIDIA DX9 GPUs do not support indirect addressing of temps, inputs, outputs, and consts (FS-only) or the hw support is so limited that we cannot use it. This should make r300g and possibly nvfx more feature complete. Signed-off-by: Marek Olšák <maraeo@gmail.com>