mesa/src
Jason Ekstrand d80cbbeaff i965/tex_image: Reference the renderbuffer miptree in setTexBuffer2
The old code made a new miptree that referenced the same BO as the
renderbuffer and just trusted in the memory aliasing to work.  There are
only two ways in which the new miptree is liable to differ from the one
in the renderbuffer and neither of them matter:

 1) It may have a different target.  The only targets that we can ever
    see in intelSetTexBuffer2 are GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE
    and the difference between the two doesn't matter as far as the
    miptree is concerned; genX(update_sampler_state) only looks at the
    gl_texture_object and not the miptree when determining whether or
    not to use normalized coordinates.

 2) It may have a very slightly different format.  Again, this doesn't
    matter because we've supported texture views for quite some time so
    we always look at the gl_texture_object format instead of the
    miptree format for hardware setup anyway.

On the other hand, because we were recreating the miptree, we were using
intel_miptree_create_for_bo which doesn't understand modifiers.  We
really want this function to work without doing a resolve so long as you
have modifiers so we need to fix that.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-09-18 12:16:55 -07:00
..
amd amd/common: add workaround for cube map array layer clamping 2017-09-18 11:25:18 +02:00
broadcom broadcom/genxml: Add V3D 3.3 packet definitions. 2017-08-18 12:54:13 -07:00
compiler glsl: avoid accessing invalid memory after get_variable_being_redeclared() 2017-09-14 11:23:26 +02:00
egl egl+glx: turn LIBGL_DRI3_DISABLE into a boolean 2017-09-12 13:53:12 +01:00
gallium radeonsi: reallocate if a non-sharable textures is being shared 2017-09-18 17:47:49 +02:00
gbm gbm: Add gbm_device_get_format_modifier_plane_count to test 2017-09-17 12:53:46 +03:00
getopt
glx glx: turn LIBGL_NO_DRAWARRAYS into a boolean 2017-09-12 13:53:12 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl
intel intel/isl: Add a drm_modifier_get_default_aux_state helper 2017-09-18 12:14:24 -07:00
loader loader/dri3: Make sure we invalidate a drawable on size change 2017-09-07 12:43:29 +02:00
mapi mapi/gen: remove shebang from the marshal generator scripts 2017-08-26 11:20:08 +01:00
mesa i965/tex_image: Reference the renderbuffer miptree in setTexBuffer2 2017-09-18 12:16:55 -07:00
util radeonsi: allow out-of-order rasterization in commutative blending cases 2017-09-18 11:25:20 +02:00
vulkan vulkan: update headers & registry to VK 1.0.61 2017-09-15 08:56:40 -07:00
Makefile.am build: Convert git_sha1_gen script to Python (part2). 2017-08-01 16:33:55 +01:00
SConscript build: Convert git_sha1_gen script to Python. 2017-08-01 15:24:39 +01:00