- 21 Dec, 2013 10 commits
-
-
Ian Romanick authored
Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Ian Romanick authored
Note that ARB_occlusion_query was previously enabled twice. Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Lauri Kasanen authored
Useful in its own right, but also needed for adaptive vsync. No regressions in the piglit glx-oml-sync-control-getmscrate test. Signed-off-by:
Lauri Kasanen <cand@gmx.com> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Tested-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Keith Packard authored
It is the maximum number of back buffers, but the name is confusing and is easily read as the maximum back buffer index. Chage to DRI3_NUM_BACK to make the intended usage a bit clearer. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Keith Packard authored
Just copying code from the dri2 path to set up the fast color clear state. This also removes a couple of bogus intel_region_reference calls. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Keith Packard authored
The buffer-object is the persistent thing passed through the loader, so when updating an image buffer, check to see if it is already bound to the provided bo. The region, on the other hand, is allocated separately for the miptree, and so will never be the same as that passed back from the loader. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Keith Packard authored
Move the depth field up with width and height. Remove unused previous_time and frames fields. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Keith Packard authored
Always nice to clean up after ourselves. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Keith Packard authored
libxshmfence v1.0 foolishly used 'int32_t *' for the fence type, which works when the fence is a linux futex. However, version 1.1 changes the exported datatype to 'struct xshmfence *' Require libxshmfence version 1.1 and switch the API around. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kenneth Graunke authored
While looking through the documentation, I found this in the Sandybridge PRM (Volume 4, Part 1, Page 140): "Use of sample_c with SURFTYPE_CUBE surfaces is undefined with the following surface formats: I24X8_UNORM, L24X8_UNORM, A24X8_UNORM, I32_FLOAT, L32_FLOAT, A32_FLOAT." I haven't observed this to be true, but it suggests that we may want to use other formats. We already perform DEPTH_TEXTURE_MODE swizzling in the shaders, and don't rely on the surface format to splat things appropriately. So using RED should work just as well as INTENSITY. A few notes about the formats: - R24_UNORM_X8_TYPELESS has the exact same properties as I24X8_UNORM. - R16_UNORM and R32_FLOAT are additionally supported as a render target, while the old I16_UNORM/I32_FLOAT formats are not. - R32_FLOAT_X8X24_TYPELESS is not supported as a render target, while the old format (R32G32_FLOAT) was. However, it shares the same properties as the formats we use for Z24, so it should suffice. This makes translate_tex_format and brw_blorp_surface_info::set a bit more similar. No Piglit changes on Sandybridge or Ivybridge. No oglconform changes on Sandybridge. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
- 20 Dec, 2013 15 commits
-
-
Chad Versace authored
Emitting flushes before depth and hiz resolves at the top of blorp's state emission fixes the hang. Marchesin and I found the fix experimentally, as opposed to adhering to a documented hardware workaround. A more minimal fix likely exists, but this gets the job done. Fixes HiZ hangs in the new WebGL Google maps on Sandybridge Chrome OS. Tested by zooming in and out continuously for 2 hours. This patch is based on https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/8bc07bb70163c3706fb4ba5f980e57dc942f56dd CC: mesa-stable@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70740Signed-off-by:
Stéphane Marchesin <marcheu@chromium.org> Signed-off-by:
Chad Versace <chad.versace@linux.intel.com> Reviewed-by:
Paul Berry <stereotype441@gmail.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kenneth Graunke authored
Broadwell allows us to specify an arbitrary value for QPitch, rather than baking a specific formula into the hardware and requiring software to lay things out to match. The only restriction is that the software provided QPitch needs to be large enough so successive array slices do not overlap. In order to support this flexibility, software needs to specify QPitch in a bunch of packets. Storing QPitch makes that easy, and allows us to adjust it in a single place should we wish to change it in the future. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Paul Berry <stereotype441@gmail.com>
-
Kenneth Graunke authored
Broadwell introduces support for Q, UQ, and HF types. It also extends DF support to allow immediate values. Irritatingly, although HF and DF both support immediates, they're represented by a different value depending on the register file. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
Ivybridge, Baytrail, and Haswell support double float register types, but do not support them as immediate values. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
On released hardware, values 4-6 are overloaded. For normal registers, they mean UB/B/DF. But for immediates, they mean UV/VF/V. Previously, we just created #defines for each name, reusing the same value. This meant we could directly splat the brw_reg::type field into the assembly encoding, which was fairly nice, and worked well. Unfortunately, Broadwell makes this infeasible: the HF and DF types are represented as different numeric values depending on whether the source register is an immediate or not. To preserve sanity, I decided to simply convert BRW_REGISTER_TYPE_* to an abstract enum that has a unique value for each register type, and write translation functions. One nice benefit is that we can add assertions about register files and generations. I've chosen not to convert brw_reg::type to the enum, since converting it caused a lot of trouble due to C++ enum rules (even though it's defined in an extern "C" block...). Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
Three-source instructions use a different encoding for register types (and have a much more limited set to choose from). Previously, we translated those into BRW_REGISTER_TYPE_* values, then reused the existing reg_encoding mapping. Doing it directly is more straightforward and actually less code. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
UB types have never been supported as immediates. On Gen4-5, register encoding 4 is "Reserved." On Gen6+, it means UV. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
Sandybridge added support for packed unsigned vectors. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Kenneth Graunke authored
When adding geometry shader support, we accidentally reversed the size and offset parameters. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Paul Berry <stereotype441@gmail.com> Cc: "10.0" <mesa-stable@lists.freedesktop.org>
-
Kenneth Graunke authored
Calling the local variables flat_enable and point_sprite_enable is clearer than dw16 and such. It also matches the names used in calculate_attr_overrides, which computes them. v2: Add /* dw16 */ and /* dw10 */ comments, requested by Jordan. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com>
-
Kenneth Graunke authored
calculate_attr_overrides is responsible for computing the point sprite and flat-shading enable bitfields. It does so by OR'ing in a bunch of bits. However, it relied on the caller to set the initial value to zero. This is pretty fragile - if the caller neglects to zero out those variables, then the enable bitfields end up full of garbage, which shows up as random things being flat-shaded. This patch moves the zero-initialization into calculate_attr_overrides, so that the computation is completely in one place. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com>
-
Kenneth Graunke authored
git blame ascribes this to the initial commit of the driver. No released hardware has ever supported half float, according to the documentation for SrcType in the ISA reference. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Kevin Rogovin authored
If no function signature is found for a function name, report that the function is not found instead of printing an empty list of candidates. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Kevin Rogovin authored
This patch changes the error reporting behavior for incorrect function invocation (triggered by match_function_by_name() unable to find a matching function call) from using the line number information associated to the function name term to using the line number information of the entire function expression. Fixes bug #72264. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72264Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Cc: "10.0" <mesa-stable@lists.freedesktop.org>
-
Michel Dänzer authored
It's not relevant for other shader types. Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- 19 Dec, 2013 5 commits
-
-
Aaron Watry authored
Trivial change, testing commit access
-
Quanxian Wang authored
Stop searching for a driver after success. Signed-off-by:
Quanxian Wang <quanxian.wang@intel.com> Reviewed-By:
Gong, Zhigang <zhigang.gong@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- 18 Dec, 2013 10 commits
-
-
Dave Airlie authored
For GLSL 1.50 we can get frag shaders with primitive id as an input, add support to the translator for this. Reviewed-by:
Brian Paul <brianp@vmware.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Juha-Pekka Heikkilä authored
In load_texunit_bumpmap tc_array is asserted so lets assert rot_mat_0 and rot_mat_1 also which are coming from same path. Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Brian Paul authored
The type_valid local was set to true and never changed.
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Check for malloc() returning null to fix Klocwork warnings. Minor clean-ups by BrianP. Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Juha-Pekka Heikkilä authored
Change save_attrib_data() to return true/false depending on success. Signed-off-by:
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Brian Paul authored
The GL_RGB32F, GL_RGB32UI and GL_RGB32I texture buffer formats are only supposed to be allowed if the GL_ARB_texture_buffer_object_rgb32 extension is supported. Note that the texture buffer extensions require a core profile. This patch adds those checks. Fixes the soon-to-be-added arb_clear_buffer_object-negative-bad-internalformat piglit test.
-
Brian Paul authored
-