[Mesa-dev] i965: Don't use gl-context for fbo-blits

Topi Pohjolainen topi.pohjolainen at intel.com
Thu Apr 23 11:18:14 PDT 2015


This series introduces new blorp parameter type for blit programs
compiled from glsl-sources. For most parts the launch logic just
calls core i965 batch emission logic.
Vertex batches are handcrafted containing full vertex header
information. This is needed because the pipeline is programmed to
skip vertex shader, clip and viewport transformation in strips&fans
(SF) but to provide the vertices directly from vertex fetcher (VF)
to the windower (WM).

Topi Pohjolainen (14):
  i965/blorp/gen7: Support for loading glsl-based fragment shaders
  i965/blorp/gen6: Support for loading glsl-based fragment shaders
  meta: Provide read access to blit shaders
  i965/meta: Add helper for looking up blit programs
  i965/blorp: Add plumbing for glsl-based color blits
  i965/blorp: Add support for loading vertices for glsl-based blits
  i965/blorp: Add support for setting up surfaces for glsl-based blits
  i965/blorp: Add support for setting samplers for glsl-based blits
  i965/gen6: Add support for setting minimum layer for tex surfaces
  i965/blorp: Enable glsl-based fbo blits
  i965/blorp/gen7: Prepare re-using for gen8
  i965/blorp/gen7: Expose state setup applicable to gen8
  i965/blorp/gen6: Prepare vertex buffer setup logic for gen8
  i965/blorp/gen8: Execution support

 src/mesa/drivers/common/meta.c                   |  17 +-
 src/mesa/drivers/common/meta.h                   |   5 +-
 src/mesa/drivers/dri/i965/Makefile.sources       |   1 +
 src/mesa/drivers/dri/i965/brw_blorp.cpp          |  21 +-
 src/mesa/drivers/dri/i965/brw_blorp.h            | 127 ++++++
 src/mesa/drivers/dri/i965/brw_blorp_blit.cpp     |  90 +++++
 src/mesa/drivers/dri/i965/brw_context.h          |  10 +
 src/mesa/drivers/dri/i965/brw_meta_util.c        | 148 +++++++
 src/mesa/drivers/dri/i965/brw_meta_util.h        |   9 +
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c |   5 +-
 src/mesa/drivers/dri/i965/gen6_blorp.cpp         | 280 ++++++++++++-
 src/mesa/drivers/dri/i965/gen7_blorp.cpp         |  87 +++-
 src/mesa/drivers/dri/i965/gen8_blorp.cpp         | 494 +++++++++++++++++++++++
 src/mesa/drivers/dri/i965/intel_fbo.c            |  11 +
 14 files changed, 1273 insertions(+), 32 deletions(-)
 create mode 100644 src/mesa/drivers/dri/i965/gen8_blorp.cpp

-- 
1.9.3



More information about the mesa-dev mailing list