summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-08-24r600g: Add support for PIPE_FORMAT_R32_FLOAT.Henri Verbeet
2010-08-24prog_execute: Implement OPCODE_TXLIan Romanick
Fixes bugzilla #29628
2010-08-24glsl2: rename local variable_entry classBrian Paul
With MSVC it seems that this class and its constructor is colliding with the one in ir_variable_refcount.cpp. Rename the class here to avoid the collision. This is a bit of a hack. Can the two variable_entry classes be merged and shared?
2010-08-24glsl2: move constructor into .cpp file to work around compiler bugBrian Paul
Fixes fd.o bug 29770 The refcount==0 assertion only failed on some systems. One example being 32-bit Linux with gcc 4.4.4.
2010-08-24mesa: added isblank() for MSVCBrian Paul
2010-08-24glsl: Add assert to check variable_entry referenced_count after construction.Vinson Lee
A variable_entry after construction should have its referenced_count member set to 0. However, occassionally this isn't the case and entry->referenced_count has been observed to be a garbage value. This leads to crashes of several tests in the Piglit test suite. This patch adds an assert to check that a variable_entry instance has its referenced_count member initialized to 0 after construction.
2010-08-23nvfx: Remove unnecessary headers.Vinson Lee
2010-08-24glsl: make 'make clean' work properly.Dave Airlie
this has make clean remove all the objects.
2010-08-23glsl: Silence unused variable warning.Vinson Lee
The variable is used but only in the body of an assert.
2010-08-23r300g: Remove unused variable.Vinson Lee
Fixes this GCC warning. r300_render.c: In function 'r300_draw_flush_vbuf': r300_render.c:988: warning: unused variable 'r300_render'
2010-08-24st/egl: Fix r300/r600 support in KMS backend.Chia-I Wu
When the kernel driver name is radeon, ask the loader for r300 or r600 depending on the PCI ID.
2010-08-24targets/egl: Check against drm_driver_descriptor::name.Chia-I Wu
drm_driver_descriptor::driver_name is defined to be the name of the kernel module. We should check against drm_driver_descriptor::name instead of drm_driver_descriptor::driver_name.
2010-08-24targets/egl: add pipe_r600Benjamin Franzke
KNOWN ISSUE: eglShowScreenSurfaceMESA in st/egl/kms fails but st/egl/x11 works
2010-08-24targets/egl: rename pipe_radeon to pipe_r300Benjamin Franzke
st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now there is also r600g for which st/egl/kms also requests a pipe named "radeon" (possible solution in later commit)
2010-08-24mesa: Remove extraneous semicolon.Chia-I Wu
2010-08-24st/dri: Remove unnecessary main/mtype.h.Chia-I Wu
2010-08-24st/wgl: Include main/core.h.Chia-I Wu
Make st/wgl include only main/core.h from core mesa.
2010-08-24st/glx: Include main/core.h.Chia-I Wu
Make st/glx include only main/core.h from core mesa.
2010-08-24glsl: Include main/core.h.Chia-I Wu
Make glsl include only main/core.h from core mesa.
2010-08-24mesa: Add core.h.Chia-I Wu
core.h is the public header of core mesa. GLX, WGL, and GLSL are supposed to include this header file. It should be noted that headers included by core.h must not perform feature tests (#if FEATURE_xxx). Otherwise, we cannot, for example, mix a FEATURE_ES2 libmesagallium.a with a FEATURE_GL libglsl.a.
2010-08-24translate_sse: clear state for each function emissionLuca Barbieri
Fixes #29771.
2010-08-23glsl: Rely on talloc_autofree_context() instead of trying to free on our own.Eric Anholt
Because the static types talloc their names at dlopen time, talloc_freeing the types at DRI driver screen teardown means that if the screen gets brought back up again, the names will point at freed memory. talloc_autofree_context() exists to do just what we want here: Free memory referenced across the program's lifetime so that we avoid noise in memory leak checkers. Fixes: bug #29722 (assertion failure in unigine).
2010-08-23intel: Add support for MAX_SAMPLES=1 EXT_framebuffer_multisample.Eric Anholt
The spec specifically sets the minimum MAX_SAMPLES at 1 to allow exposing the extension on all implementations, so do so.
2010-08-23radeon: print chip family for evergreen in renderer stringAlex Deucher
2010-08-24r600g: add XPD supportDave Airlie
ported from r600c.
2010-08-24r600g: add CMP support.Dave Airlie
ported from r600c, fixes fp-cmp, glsl1-sqrt*
2010-08-24nvfx: don't emit dummy commands on nv30Luca Barbieri
Should fix errors on the original nv30, reported by pmdata.
2010-08-23glsl: When unable to assign the initializer for a const variable, set it to 0.Eric Anholt
This prevents assertion failures or cascading errors after we've logged the fact that we were unable to handle the initializer. Fixes unsized-array-non-const-index-2.vert
2010-08-23translate_sse: fix x86-64Luca Barbieri
2010-08-23glsl: Cleanly fail when a function has an unknown return type.Eric Anholt
Bug #29608.
2010-08-23r600g: Add support for PIPE_CAP_DEPTH_CLAMP.Henri Verbeet
2010-08-23glsl: Rebuild builtins for any() change.Eric Anholt
2010-08-23mesa: Add new ir_unop_any() expression operation.Eric Anholt
The previous any() implementation would generate arg0.x || arg0.y || arg0.z. Having an expression operation for this makes it easy for the backend to generate something easier (DPn + SNE for 915 FS, .any predication on 965 VS)
2010-08-23glsl: Regenerate builtins with the new sorting.Eric Anholt
2010-08-23ir_to_mesa: Implement f2b by comparing the arg to 0, not the result.Eric Anholt
Fixes: glsl-fs-any
2010-08-23glsl: Count function call outvals as writing to variables for linker checks.Eric Anholt
Fixes: glsl-vs-position-outval. Bug #28138 (regnum online)
2010-08-23glsl2: Include imports.h to get snprintf wrapper for MSVCIan Romanick
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-08-23mesa: Fix msvc build of glsl.Aras Pranckevicius
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-08-23auxiliary: fix nvfx/nv50 primitive splitting for line loopsLuca Barbieri
s->close_first was on the wrong side of the inequality. Caught by blender. Thanks to AndrewR for reporting this.
2010-08-23r600g: export one component per pixel + r7xx uncompression shaderJerome Glisse
We need to always at least export one component (wether it's depth or color. Add valid r7xx shader program for depth decompression. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-23generate_builtins.py: Generate output in sorted order.Kenneth Graunke
2010-08-23nvfx: improve fp temp accountingLuca Barbieri
2010-08-23tgsi: fix false CondStackTop==0 assertionBrian Paul
2010-08-23ir_to_mesa: Fix constant array handling to return the temp we created.Eric Anholt
We ended up returning CONST[loc] rather than TEMP[loc2]. Things would *usually* end up working out OK, since the constants often ended up getting allocated to CONST[loc..loc+columns] with no swizzle. But for the case where the contigous temporary copy of the swizzled constant vec4 args was actually needed, we'd end up reading some other constant values, possibly including ones not actually allocated. Fixes: glsl-varying-mat3x2.
2010-08-23glcpp: Make standalone preprocessor work with a tty as stdinCarl Worth
Previously glcpp would silently abort if it couldn't fstat the file being read, (so it would work with stdin redirected from a file, but would not work with stdin as a tty). The stat was so that glcpp could allocate a buffer for the file content in a single call. We now use talloc_realloc instead, (even if the fstat is possible). This is theoretically less efficient, but quite irrelevant, (particularly because the standalone preprocessor is used only for testing).
2010-08-23glcpp: Fix test suite to avoid flagging failed tests as valgrind errors.Carl Worth
We recently added several tests that intentionally trigger preprocessor errors. During valgrind-based testing, our test script was noticing the non-zero return value from the preprocessor and incorrectly flagging the valgrind-based test as failing. To fix this, we make valgrind return an error code that is otherwise unused by the preprocessor.
2010-08-23glcpp: Fix segfault in standalone preprocessor for "file not found", etc.Carl Worth
This error message was missing so that the program would simply segfault if the provided filename could not be opened for some reason. While we're at it, we add explicit support for a filename of "-" to indicate input from stdin.
2010-08-23glcpp: Update generated glcpp-lex.c for the last two changes.Carl Worth
This fixes both "#line 0" and "#line XXX YYY" as described in the two most recent commits.
2010-08-23glcpp: Fix handling of "#line 0"Carl Worth
The existing DECIMAL_INTEGER pattern is the correct thing to use when looking for a C decimal integer, (that is, a digit-sequence not starting with 0 which would instead be an octal integer). But for #line, we really want to accept any digit sequence, (including "0"), and always interpret it as a decimal constant. So we add a new DIGITS pattern for this case. This should fix the compilation failure noted in bug #28138 https://bugs.freedesktop.org/show_bug.cgi?id=28138 (Though the generated file will not be updated until the next commit.)
2010-08-23glcpp: Fix source numbers set with "#line LINE_NUMBER SOURCE_NUMBER"Carl Worth
Previously, the YY_USER_ACTION was overwriting the yylloc->source value in every action, (after that value had been carefully set by the handling of the #line directive). Instead, we want to initialize it once in YY_USER_INIT and then not touch it at all in YY_USER_ACTION.