- Jan 28, 2013
-
-
Jerome Glisse authored
Old kernel do not have dma support, patch pushed were missing some of the check needed to not use dma. Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
- Jan 25, 2013
-
-
Zack Rusin authored
Only drivers supporting DRI2 version >=4 support GLX_INTEL_swap_event. So lets mark it as such otherwise applications which use this extension (i.e. everything based on Clutter, e.g. gnome-shell) break horribly on drivers supporting DRI2 versions only up to 3. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- Jan 28, 2013
-
-
Vadim Girlin authored
Get rid of special handling for reserved regs. Use one intrinsic for all kinds of interpolation. v2[Vincent Lejeune]: Rebased against current master Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> Signed-off-by:
Vadim Girlin <vadimgirlin@gmail.com>
-
Tom Stellard authored
r600_bytecode::ar_chan stores the register channel for the value that will be loaded into the AR register. At the moment, this field is only used by the LLVM backend. The default backend always sets ar_chan = 0.
-
Tom Stellard authored
-
Vincent Lejeune authored
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59588 Reviewed-by:
Tom Stellard <thomas.stellard@amd.com>
-
-
Alex Deucher authored
It shouldn't be needed and older kernels don't support it. v2: Replace with PS partial flush as before. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59945 Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Reviewed-by:
Marek Olšák <maraeo@gmail.com>
-
Jerome Glisse authored
v2: Add virtual address to dma src/dst offset for cayman Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Jerome Glisse authored
We keep track of ring emission order in a stack, whenever we need to flush we empty the stack in a fifo order. There is few helpers function for bo mapping and other ring activities that will make sure that the ring stack is properly flush and submitted. v2: fix st flush path, and other flush path to properly flush all rings if necessary v3: - improve name of ring helpers - make sure that each time a cs is gona be written it endup at top of the stack to avoid any issue such as : STACK[0] = dma (withbo A,B) STACK[1] = gfx (withbo C,D) Now if code try to emit a dma command relative to bo C or D it will start writting cmd stream into the cs and once it reach the point where it adds relocation it will flush. At that point the cs will have cmd that don't have proper relocation into the relocation buffer and kernel will just refuse to run. v4: - Drop the stack idea as it turn out there is no way to use it or benefit from it. Any time the driver start command on other ring, it always need to flush the previous ring. So make code simpler by not using a stack. Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Jerome Glisse authored
Add ring support, you can create a cs for each ring. DMA ring is bit special regarding relocation as you must emit as much relocation as there is use of the buffer. v2: - Improved comment on relocation changes - Use a single thread to queue cs submittion this simplify driver code while not impacting performances. Rational for this is that you have to wait for all previous submission to have completed so there was never a case while we could have 2 different thread submitting a command stream at the same time. This code just consolidate submission into one single thread per winsys. v3: - Do not use semaphore for empty queue signaling, instead use cond var. This is because it's tricky to maintain an even number of call to semaphore wait and semaphore signal (the number of cs in the stack would for instance make that number vary). Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Roland Scheidegger authored
Make it obvious what "unit" this is (no change in functionality). draw still uses "unit" in places where it changes the shader by adding texture sampling itself - it seems like this can't work with shaders using dx10-style sample opcodes (can't mix gl-style and dx10-style sample instructions in a shader). Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Roland Scheidegger authored
Split the sampler interface to use separate sampler and texture (sampler_view) state. This is needed to support dx10-style sampling instructions. This is not quite complete since both draw/llvmpipe don't really track textures/samplers independently yet, as well as the gallivm code not quite using the right sampler or texture index respectively (but it should work for the sampling codes used by opengl). We are however losing some optimizations in the process, apply_max_lod will no longer work, and we potentially could end up with more (unnecessary) recompiles (if switching textures with/without mipmaps only so it shouldn't be too bad). v2: don't use different callback structs for sampler/sampler view functions (which just complicates things), fix up sampling code to actually use the right texture or sampler index, and similar for llvmpipe/draw actually distinguish between samplers and sampler views. v3: fix more of PIPE_MAX_SAMPLER / PIPE_MAX_SHADER_SAMPLER_VIEWS mismatches (both in draw and llvmpipe), based on feedback from José get rid of unneeded static sampler derived state.(which also fixes the only 2 piglit regressions due to a forgotten assignment), fix comments based on Brian's feedback. v4: remove some accidental unrelated whitespace changes Reviewed-by:
José Fonseca <jfonseca@vmware.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Marek Olšák authored
It can eat all memory and crash in a matter of minutes with r600g.
-
- Jan 27, 2013
-
-
Christoph Bumiller authored
-
Matt Turner authored
Contains a fix for Khronos bug 9557. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com>
-
- Jan 26, 2013
-
-
Marek Olšák authored
just in case a new format is added to gallium
-
Marek Olšák authored
npix_x/y/z is wrong with NPOT textures, since it's always aligned to POT if the level is non-zero, so we can't use that. This fixes piglit/spec/EXT_texture_shared_exponent/fbo-generatemipmap-formats.
-
Marek Olšák authored
-
Alex Deucher authored
Need to add the virtual address. Reviewed-by:
Marek Olšák <maraeo@gmail.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
- Jan 25, 2013
-
-
Brian Paul authored
Fixes a crash when the Redway3D Turbine demo exits. We've made this change in other places in the past. The root issue is texture objects are being shared by multiple contexts and sampler views get shared too. Sampler views have a context pointer and if that context gets deleted we may try to reference that context when finally deleting the sampler view. pipe_sampler_view_release() avoids this problem because it takes an explicit context. Reviewed-by:
Zack Rusin <zackr@vmware.com>
-
Brian Paul authored
To silence warnings about unhandled cases.
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
Check the return value of calls to u_upload_alloc() and u_upload_data() and return early if needed. Since we don't have a way to propagate errors all the way up to Mesa through pipe_context::draw_vbo(), call debug_warn_once() so the user might have some clue about OOM errors. Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
We weren't properly checking the return value of these calls (and calls to u_upload_data()) to detect OOM errors. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Some callers of this function were checking the 'ptr' result to see if the function failed. But the correct way is to check the regular return value for PIPE_ERROR_x. Now we initialize all the returned values at the top of the function in case we do hit an error (like OOM). Callers are more likely to detect OOM conditions now. But there are some callers which don't do any error checking... Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Since the result of those calls is always assigned to a float. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Brian Paul authored
Note, we could alternately implement this in terms of glsl_strtod() with a (float) cast. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch. Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
There are other similar int->float casts elsewhere in the function. Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
Matt Turner authored
Reviewed-by:
Chad Versace <chad.versace@linux.intel.com> Reviewed-by:
Paul Berry <stereotype441@gmail.com>
-
Matt Turner authored
Reviewed-by:
Chad Versace <chad.versace@linux.intel.com> Reviewed-by:
Paul Berry <stereotype441@gmail.com>
-