<p dir="ltr"></p>
<p dir="ltr">On Jul 29, 2016 9:09 AM, "Jason Ekstrand" <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
><br>
> On Jul 29, 2016 1:47 AM, "Pohjolainen, Topi" <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>> wrote:<br>
> ><br>
> > On Thu, Jul 28, 2016 at 11:41:01AM -0700, Jason Ekstrand wrote:<br>
> > > On Jul 28, 2016 12:05 PM, "Pohjolainen, Topi"<br>
> > > <[1]<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>> wrote:<br>
> > > ><br>
> > > > On Tue, Jul 26, 2016 at 03:11:12PM -0700, Jason Ekstrand wrote:<br>
> > > > > Instead, we add a bo and offset field to brw_blorp_surface_info and<br>
> > > use<br>
> > > > > those in the backend.<br>
> > > > > ---<br>
> > > > > src/mesa/drivers/dri/i965/brw_blorp.c | 10 +++++---<br>
> > > > > src/mesa/drivers/dri/i965/brw_blorp.h | 3 ++-<br>
> > > > > src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 4 +++-<br>
> > > > > src/mesa/drivers/dri/i965/gen6_blorp.c | 33<br>
> > > +++++++++++---------------<br>
> > > > > src/mesa/drivers/dri/i965/gen7_blorp.c | 35<br>
> > > ++++++++++++----------------<br>
> > > > > src/mesa/drivers/dri/i965/gen8_blorp.c | 10 ++++----<br>
> > > > > 6 files changed, 45 insertions(+), 50 deletions(-)<br>
> > > > ><br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > > b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > > > > index 87d8929..cf1615f 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > > > > @@ -126,8 +126,12 @@ brw_blorp_surface_info_init(struct brw_context<br>
> > > *brw,<br>
> > > > > intel_miptree_check_level_layer(mt, level, layer);<br>
> > > > ><br>
> > > > > info->mt = mt;<br>
> > > > > + if (is_render_target)<br>
> > > > > + intel_miptree_used_for_rendering(mt);<br>
> > > > ><br>
> > > > > intel_miptree_get_isl_surf(brw, mt, &info->surf);<br>
> > > > > + info->bo = mt->bo;<br>
> > > > > + info->offset = mt->offset;<br>
> > > > ><br>
> > > > > if (mt->mcs_mt) {<br>
> > > > > intel_miptree_get_aux_isl_surf(brw, mt, &info->aux_surf,<br>
> > > > > @@ -360,7 +364,7 @@ brw_blorp_emit_surface_state(struct brw_context<br>
> > > *brw,<br>
> > > > > const uint32_t mocs = is_render_target ? ss_info.rb_mocs :<br>
> > > ss_info.tex_mocs;<br>
> > > > ><br>
> > > > > isl_surf_fill_state(&brw->isl_dev, dw, .surf = &surf, .view =<br>
> > > &surface->view,<br>
> > > > > - .address = surface->mt->bo->offset64 +<br>
> > > surface->bo_offset,<br>
> > > > > + .address = surface->bo->offset64 +<br>
> > > surface->offset,<br>
> > > > > .aux_surf = aux_surf, .aux_usage =<br>
> > > surface->aux_usage,<br>
> > > > > .aux_address = aux_offset,<br>
> > > > > .mocs = mocs, .clear_color = clear_color,<br>
> > > > > @@ -370,8 +374,8 @@ brw_blorp_emit_surface_state(struct brw_context<br>
> > > *brw,<br>
> > > > > /* Emit relocation to surface contents */<br>
> > > > > drm_intel_bo_emit_reloc(brw->[2]<a href="http://batch.bo">batch.bo</a>,<br>
> > > > > surf_offset + ss_info.reloc_dw * 4,<br>
> > > > > - surface->mt->bo,<br>
> > > > > - dw[ss_info.reloc_dw] -<br>
> > > surface->mt->bo->offset64,<br>
> > > > > + surface->bo,<br>
> > > > > + dw[ss_info.reloc_dw] -<br>
> > > surface->bo->offset64,<br>
> > > > > read_domains, write_domain);<br>
> > > > ><br>
> > > > > if (aux_surf) {<br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h<br>
> > > b/src/mesa/drivers/dri/i965/brw_blorp.h<br>
> > > > > index 076d26d..98a9436 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/brw_blorp.h<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/brw_blorp.h<br>
> > > > > @@ -72,6 +72,8 @@ struct brw_blorp_surface_info<br>
> > > > > struct intel_mipmap_tree *mt;<br>
> > > > ><br>
> > > > > struct isl_surf surf;<br>
> > > > > + drm_intel_bo *bo;<br>
> > > > > + uint32_t offset;<br>
> > > > ><br>
> > > > > struct isl_surf aux_surf;<br>
> > > > > enum isl_aux_usage aux_usage;<br>
> > > > > @@ -81,7 +83,6 @@ struct brw_blorp_surface_info<br>
> > > > > /* Z offset into a 3-D texture or slice of a 2-D array texture.<br>
> > > */<br>
> > > > > uint32_t z_offset;<br>
> > > > ><br>
> > > > > - uint32_t bo_offset;<br>
> > > ><br>
> > > > So effectively you are renaming bo_offset to offset, right? To me the<br>
> > > older is<br>
> > > > somewhat more informative but I'm okay either way.<br>
> > ><br>
> > > Sure but aux_go_offset starts getting long. I also wanted to manually<br>
> > > look at every use of it (see below)<br>
> > ><br>
> > > > > uint32_t tile_x_sa, tile_y_sa;<br>
> > > > > };<br>
> > > > ><br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp<br>
> > > b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp<br>
> > > > > index ed68734..ee34a70 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp<br>
> > > > > @@ -1604,11 +1604,13 @@ surf_convert_to_single_slice(struct<br>
> > > brw_context *brw,<br>
> > > > > info->view.base_array_layer,<br>
> > > > > &x_offset_sa, &y_offset_sa);<br>
> > > > ><br>
> > > > > + uint32_t byte_offset;<br>
> > > > > isl_tiling_get_intratile_offset_sa(&brw->isl_dev,<br>
> > > info->surf.tiling,<br>
> > > > > info->view.format,<br>
> > > info->surf.row_pitch,<br>
> > > > > x_offset_sa, y_offset_sa,<br>
> > > > > - &info->bo_offset,<br>
> > > > > + &byte_offset,<br>
> > > ><br>
> > > > Is there something else going on preventing simple:<br>
> > > ><br>
> > > > &info->offset,<br>
> > ><br>
> > > Yes. The offset used to mean offset into the surface defined by the<br>
> > > miptree but now means full offset into the BO. Before, you had to add<br>
> > > offset and mt->offset in order to get the final offset. Now there is<br>
> > > just one so we need += here.<br>
> ><br>
> > Hmm, reading again and I still can't see where you drop the old addition<br>
> > calling for the addition here. To me it just looks that the name of the member<br>
> > changes. Can you help me a bit?<br>
><br>
> I thought for sure we had it somewhere. In any case offsets that aren't zero need to be supported on all surfaces for Vulkan. As I've been going through I've been trying to make sure they do. I can put that in the commit message.</p>
<p dir="ltr">Maybe this is a better way of putting it: We're moving from a miptree model to a surf+bo+offset model. In the GL driver, miptrees are almost always at the start of the bo so the offset is zero but we don't want to always make that assumption. In the sort term, gen6 stencil and HiZ will be at an offset but, in the long term, any Vulkan surface is liable to be at a non-zero offset.</p>
<p dir="ltr">> > ><br>
> > > > > &info->tile_x_sa,<br>
> > > &info->tile_y_sa);<br>
> > > > > + info->offset += byte_offset;<br>
> > > > ><br>
> > > > > /* TODO: Once this file gets converted to C, we shouls just use<br>
> > > designated<br>
> > > > > * initializers.<br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.c<br>
> > > b/src/mesa/drivers/dri/i965/gen6_blorp.c<br>
> > > > > index 9e08374..6f3073b 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/gen6_blorp.c<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/gen6_blorp.c<br>
> > > > > @@ -634,7 +634,7 @@ gen6_blorp_emit_wm_config(struct brw_context<br>
> > > *brw,<br>
> > > > > dw5 |= GEN6_WM_16_DISPATCH_ENABLE;<br>
> > > > > }<br>
> > > > ><br>
> > > > > - if (params->[3]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[4]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > dw5 |= GEN6_WM_KILL_ENABLE; /* TODO: temporarily smash on */<br>
> > > > > dw2 |= 1 << GEN6_WM_SAMPLER_COUNT_SHIFT; /* Up to 4 samplers<br>
> > > */<br>
> > > > > }<br>
> > > > > @@ -700,20 +700,16 @@ gen6_blorp_emit_depth_stencil_config(struct<br>
> > > brw_context *brw,<br>
> > > > > const struct brw_blorp_params<br>
> > > *params)<br>
> > > > > {<br>
> > > > > uint32_t surftype;<br>
> > > > > - GLenum gl_target = params->depth.mt->target;<br>
> > > > > -<br>
> > > > > - switch (gl_target) {<br>
> > > > > - case GL_TEXTURE_CUBE_MAP_ARRAY:<br>
> > > > > - case GL_TEXTURE_CUBE_MAP:<br>
> > > > > - /* The PRM claims that we should use BRW_SURFACE_CUBE for<br>
> > > this<br>
> > > > > - * situation, but experiments show that gl_Layer doesn't<br>
> > > work when we do<br>
> > > > > - * this. So we use BRW_SURFACE_2D, since for rendering<br>
> > > purposes this is<br>
> > > > > - * equivalent.<br>
> > > > > - */<br>
> > > > > +<br>
> > > > > + switch (params->depth.surf.dim) {<br>
> > > > > + case ISL_SURF_DIM_1D:<br>
> > > > > + surftype = BRW_SURFACE_1D;<br>
> > > > > + break;<br>
> > > > > + case ISL_SURF_DIM_2D:<br>
> > > > > surftype = BRW_SURFACE_2D;<br>
> > > > > break;<br>
> > > > > - default:<br>
> > > > > - surftype = translate_tex_target(gl_target);<br>
> > > > > + case ISL_SURF_DIM_3D:<br>
> > > > > + surftype = BRW_SURFACE_3D;<br>
> > > > > break;<br>
> > > > > }<br>
> > > > ><br>
> > > > > @@ -738,9 +734,9 @@ gen6_blorp_emit_depth_stencil_config(struct<br>
> > > brw_context *brw,<br>
> > > > > surftype << 29);<br>
> > > > ><br>
> > > > > /* 3DSTATE_DEPTH_BUFFER dw2 */<br>
> > > > > - OUT_RELOC(params->depth.mt->bo,<br>
> > > > > + OUT_RELOC(params->[5]<a href="http://depth.bo">depth.bo</a>,<br>
> > > > > I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,<br>
> > > > > - 0);<br>
> > > > > + params->depth.offset);<br>
> > > > ><br>
> > > > > /* 3DSTATE_DEPTH_BUFFER dw3 */<br>
> > > > > OUT_BATCH(BRW_SURFACE_MIPMAPLAYOUT_BELOW << 1 |<br>
> > > > > @@ -940,12 +936,11 @@ gen6_blorp_exec(struct brw_context *brw,<br>
> > > > > uint32_t wm_surf_offset_renderbuffer;<br>
> > > > > uint32_t wm_surf_offset_texture = 0;<br>
> > > > ><br>
> > > > > - intel_miptree_used_for_rendering(params->[6]<a href="http://dst.mt">dst.mt</a>);<br>
> > > > > wm_surf_offset_renderbuffer =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->dst,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > true);<br>
> > > > > - if (params->[7]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[8]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > wm_surf_offset_texture =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->src,<br>
> > > > > I915_GEM_DOMAIN_SAMPLER,<br>
> > > 0, false);<br>
> > > > > @@ -956,7 +951,7 @@ gen6_blorp_exec(struct brw_context *brw,<br>
> > > > > wm_surf_offset_texture);<br>
> > > > > }<br>
> > > > ><br>
> > > > > - if (params->[9]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[10]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > const uint32_t sampler_offset =<br>
> > > > > gen6_blorp_emit_sampler_state(brw, BRW_MAPFILTER_LINEAR,<br>
> > > 0, true);<br>
> > > > > gen6_blorp_emit_sampler_state_pointers(brw, sampler_offset);<br>
> > > > > @@ -971,7 +966,7 @@ gen6_blorp_exec(struct brw_context *brw,<br>
> > > > > gen6_blorp_emit_binding_table_pointers(brw,<br>
> > > wm_bind_bo_offset);<br>
> > > > > gen6_blorp_emit_viewport_state(brw, params);<br>
> > > > ><br>
> > > > > - if (params->[11]<a href="http://depth.mt">depth.mt</a>)<br>
> > > > > + if (params->[12]<a href="http://depth.bo">depth.bo</a>)<br>
> > > > > gen6_blorp_emit_depth_stencil_config(brw, params);<br>
> > > > > else<br>
> > > > > gen6_blorp_emit_depth_disable(brw, params);<br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.c<br>
> > > b/src/mesa/drivers/dri/i965/gen7_blorp.c<br>
> > > > > index 420a285..0ca1a7b 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/gen7_blorp.c<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/gen7_blorp.c<br>
> > > > > @@ -374,7 +374,7 @@ gen7_blorp_emit_wm_config(struct brw_context<br>
> > > *brw,<br>
> > > > > if (params->wm_prog_data)<br>
> > > > > dw1 |= GEN7_WM_DISPATCH_ENABLE; /* We are rendering */<br>
> > > > ><br>
> > > > > - if (params->[13]<a href="http://src.mt">src.mt</a>)<br>
> > > > > + if (params->[14]<a href="http://src.bo">src.bo</a>)<br>
> > > > > dw1 |= GEN7_WM_KILL_ENABLE; /* TODO: temporarily smash on */<br>
> > > > ><br>
> > > > > if (params->dst.surf.samples > 1) {<br>
> > > > > @@ -441,7 +441,7 @@ gen7_blorp_emit_ps_config(struct brw_context<br>
> > > *brw,<br>
> > > > > dw4 |= GEN7_PS_16_DISPATCH_ENABLE;<br>
> > > > > }<br>
> > > > ><br>
> > > > > - if (params->[15]<a href="http://src.mt">src.mt</a>)<br>
> > > > > + if (params->[16]<a href="http://src.bo">src.bo</a>)<br>
> > > > > dw2 |= 1 << GEN7_PS_SAMPLER_COUNT_SHIFT; /* Up to 4 samplers<br>
> > > */<br>
> > > > ><br>
> > > > > dw4 |= params->fast_clear_op;<br>
> > > > > @@ -486,20 +486,16 @@ gen7_blorp_emit_depth_stencil_config(struct<br>
> > > brw_context *brw,<br>
> > > > > {<br>
> > > > > const uint8_t mocs = GEN7_MOCS_L3;<br>
> > > > > uint32_t surftype;<br>
> > > > > - GLenum gl_target = params->depth.mt->target;<br>
> > > > > -<br>
> > > > > - switch (gl_target) {<br>
> > > > > - case GL_TEXTURE_CUBE_MAP_ARRAY:<br>
> > > > > - case GL_TEXTURE_CUBE_MAP:<br>
> > > > > - /* The PRM claims that we should use BRW_SURFACE_CUBE for<br>
> > > this<br>
> > > > > - * situation, but experiments show that gl_Layer doesn't<br>
> > > work when we do<br>
> > > > > - * this. So we use BRW_SURFACE_2D, since for rendering<br>
> > > purposes this is<br>
> > > > > - * equivalent.<br>
> > > > > - */<br>
> > > > > +<br>
> > > > > + switch (params->depth.surf.dim) {<br>
> > > > > + case ISL_SURF_DIM_1D:<br>
> > > > > + surftype = BRW_SURFACE_1D;<br>
> > > > > + break;<br>
> > > > > + case ISL_SURF_DIM_2D:<br>
> > > > > surftype = BRW_SURFACE_2D;<br>
> > > > > break;<br>
> > > > > - default:<br>
> > > > > - surftype = translate_tex_target(gl_target);<br>
> > > > > + case ISL_SURF_DIM_3D:<br>
> > > > > + surftype = BRW_SURFACE_3D;<br>
> > > > > break;<br>
> > > > > }<br>
> > > > ><br>
> > > > > @@ -517,9 +513,9 @@ gen7_blorp_emit_depth_stencil_config(struct<br>
> > > brw_context *brw,<br>
> > > > > 1 << 22 | /* hiz enable */<br>
> > > > > 1 << 28 | /* depth write */<br>
> > > > > surftype << 29);<br>
> > > > > - OUT_RELOC(params->depth.mt->bo,<br>
> > > > > + OUT_RELOC(params->[17]<a href="http://depth.bo">depth.bo</a>,<br>
> > > > > I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,<br>
> > > > > - 0);<br>
> > > > > + params->depth.offset);<br>
> > > > > OUT_BATCH((params->depth.surf.logical_level0_px.width - 1)<br>
> > > << 4 |<br>
> > > > > (params->depth.surf.logical_level0_px.height - 1)<br>
> > > << 18 |<br>
> > > > > params->depth.view.base_level);<br>
> > > > > @@ -667,13 +663,12 @@ gen7_blorp_exec(struct brw_context *brw,<br>
> > > > > uint32_t wm_surf_offset_renderbuffer;<br>
> > > > > uint32_t wm_surf_offset_texture = 0;<br>
> > > > ><br>
> > > > > - intel_miptree_used_for_rendering(params->[18]<a href="http://dst.mt">dst.mt</a>);<br>
> > > > > wm_surf_offset_renderbuffer =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->dst,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > > > true /* is_render_target<br>
> > > */);<br>
> > > > > - if (params->[19]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[20]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > wm_surf_offset_texture =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->src,<br>
> > > > > I915_GEM_DOMAIN_SAMPLER,<br>
> > > 0,<br>
> > > > > @@ -696,7 +691,7 @@ gen7_blorp_exec(struct brw_context *brw,<br>
> > > > > if (params->wm_prog_data)<br>
> > > > > gen7_blorp_emit_binding_table_pointers_ps(brw,<br>
> > > wm_bind_bo_offset);<br>
> > > > ><br>
> > > > > - if (params->[21]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[22]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > const uint32_t sampler_offset =<br>
> > > > > gen6_blorp_emit_sampler_state(brw, BRW_MAPFILTER_LINEAR,<br>
> > > 0, true);<br>
> > > > > gen7_blorp_emit_sampler_state_pointers_ps(brw,<br>
> > > sampler_offset);<br>
> > > > > @@ -705,7 +700,7 @@ gen7_blorp_exec(struct brw_context *brw,<br>
> > > > > gen7_blorp_emit_ps_config(brw, params);<br>
> > > > > gen7_blorp_emit_cc_viewport(brw);<br>
> > > > ><br>
> > > > > - if (params->[23]<a href="http://depth.mt">depth.mt</a>)<br>
> > > > > + if (params->[24]<a href="http://depth.bo">depth.bo</a>)<br>
> > > > > gen7_blorp_emit_depth_stencil_config(brw, params);<br>
> > > > > else<br>
> > > > > gen7_blorp_emit_depth_disable(brw);<br>
> > > > > diff --git a/src/mesa/drivers/dri/i965/gen8_blorp.c<br>
> > > b/src/mesa/drivers/dri/i965/gen8_blorp.c<br>
> > > > > index 1756b29..eac3414 100644<br>
> > > > > --- a/src/mesa/drivers/dri/i965/gen8_blorp.c<br>
> > > > > +++ b/src/mesa/drivers/dri/i965/gen8_blorp.c<br>
> > > > > @@ -297,7 +297,7 @@ gen8_blorp_emit_ps_config(struct brw_context<br>
> > > *brw,<br>
> > > > > dw3 = dw5 = dw6 = dw7 = ksp0 = ksp2 = 0;<br>
> > > > > dw3 |= GEN7_PS_VECTOR_MASK_ENABLE;<br>
> > > > ><br>
> > > > > - if (params->[25]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[26]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > dw3 |= 1 << GEN7_PS_SAMPLER_COUNT_SHIFT; /* Up to 4 samplers<br>
> > > */<br>
> > > > > dw3 |= 2 << GEN7_PS_BINDING_TABLE_ENTRY_COUNT_SHIFT; /* Two<br>
> > > surfaces */<br>
> > > > > } else {<br>
> > > > > @@ -362,7 +362,7 @@ gen8_blorp_emit_ps_extra(struct brw_context<br>
> > > *brw,<br>
> > > > ><br>
> > > > > dw1 |= GEN8_PSX_PIXEL_SHADER_VALID;<br>
> > > > ><br>
> > > > > - if (params->[27]<a href="http://src.mt">src.mt</a>)<br>
> > > > > + if (params->[28]<a href="http://src.bo">src.bo</a>)<br>
> > > > > dw1 |= GEN8_PSX_KILL_ENABLE;<br>
> > > > ><br>
> > > > > if (params->wm_prog_data->num_varying_inputs)<br>
> > > > > @@ -482,14 +482,12 @@ gen8_blorp_emit_surface_states(struct<br>
> > > brw_context *brw,<br>
> > > > > uint32_t wm_surf_offset_renderbuffer;<br>
> > > > > uint32_t wm_surf_offset_texture = 0;<br>
> > > > ><br>
> > > > > - intel_miptree_used_for_rendering(params->[29]<a href="http://dst.mt">dst.mt</a>);<br>
> > > > > -<br>
> > > > > wm_surf_offset_renderbuffer =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->dst,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > > > I915_GEM_DOMAIN_RENDER,<br>
> > > > > true /* is_render_target */);<br>
> > > > > - if (params->[30]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[31]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > wm_surf_offset_texture =<br>
> > > > > brw_blorp_emit_surface_state(brw, ¶ms->src,<br>
> > > > > I915_GEM_DOMAIN_SAMPLER, 0,<br>
> > > > > @@ -533,7 +531,7 @@ gen8_blorp_exec(struct brw_context *brw, const<br>
> > > struct brw_blorp_params *params)<br>
> > > > ><br>
> > > > > gen7_blorp_emit_binding_table_pointers_ps(brw,<br>
> > > wm_bind_bo_offset);<br>
> > > > ><br>
> > > > > - if (params->[32]<a href="http://src.mt">src.mt</a>) {<br>
> > > > > + if (params->[33]<a href="http://src.bo">src.bo</a>) {<br>
> > > > > const uint32_t sampler_offset =<br>
> > > > > gen6_blorp_emit_sampler_state(brw, BRW_MAPFILTER_LINEAR,<br>
> > > 0, true);<br>
> > > > > gen7_blorp_emit_sampler_state_pointers_ps(brw,<br>
> > > sampler_offset);<br>
> > > > > --<br>
> > > > > 2.5.0.400.gff86faf<br>
> > > > ><br>
> > > > > _______________________________________________<br>
> > > > > mesa-dev mailing list<br>
> > > > > [34]<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > > > > [35]<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
> > ><br>
> > > References<br>
> > ><br>
> > > 1. mailto:<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a><br>
> > > 2. <a href="http://batch.bo/">http://batch.bo/</a><br>
> > > 3. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 4. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 5. <a href="http://depth.bo/">http://depth.bo/</a><br>
> > > 6. <a href="http://dst.mt/">http://dst.mt/</a><br>
> > > 7. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 8. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 9. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 10. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 11. <a href="http://depth.mt/">http://depth.mt/</a><br>
> > > 12. <a href="http://depth.bo/">http://depth.bo/</a><br>
> > > 13. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 14. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 15. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 16. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 17. <a href="http://depth.bo/">http://depth.bo/</a><br>
> > > 18. <a href="http://dst.mt/">http://dst.mt/</a><br>
> > > 19. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 20. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 21. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 22. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 23. <a href="http://depth.mt/">http://depth.mt/</a><br>
> > > 24. <a href="http://depth.bo/">http://depth.bo/</a><br>
> > > 25. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 26. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 27. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 28. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 29. <a href="http://dst.mt/">http://dst.mt/</a><br>
> > > 30. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 31. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 32. <a href="http://src.mt/">http://src.mt/</a><br>
> > > 33. <a href="http://src.bo/">http://src.bo/</a><br>
> > > 34. mailto:<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > > 35. <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br></p>