[Beignet] [PATCH 0/4] Enable get_image_width/height.

Zhigang Gong zhigang.gong at linux.intel.com
Fri May 17 01:59:56 PDT 2013


This patchset enable the get_image_width/height support. Actually, it
implement a framework to support all the other information easily. At
the GBE side, it analyzes the get_image_xxx function call, and allocate
curbe slot for the required image information and latter at runtime,
it tell runtime library which image's which information need to set
to which curbe slot. 

--------------------------------------------------------------------

Zhigang Gong (4):
  GBE: preare for get_image_xxx functions support.
  GBE: Add support for get_image_width/height.
  CL: complete get_image_width/height support at runtime side.
  utests: add one test case to test get_image_width/height.

 backend/src/backend/context.cpp                    | 16 +++++++
 backend/src/backend/context.hpp                    |  3 ++
 backend/src/backend/gen_context.cpp                | 17 ++++++++
 backend/src/backend/gen_context.hpp                |  1 +
 .../src/backend/gen_insn_gen7_schedule_info.hxx    |  1 +
 backend/src/backend/gen_insn_selection.cpp         | 34 ++++++++++++++-
 backend/src/backend/gen_insn_selection.hxx         |  1 +
 backend/src/backend/program.h                      |  4 +-
 backend/src/backend/program.hpp                    |  6 +--
 backend/src/ir/image.cpp                           | 41 +++++++++++++++++-
 backend/src/ir/image.hpp                           |  6 +++
 backend/src/ir/instruction.cpp                     | 44 +++++++++++++++++++
 backend/src/ir/instruction.hpp                     | 37 ++++++++++++++++
 backend/src/ir/instruction.hxx                     |  2 +-
 backend/src/llvm/llvm_gen_backend.cpp              | 31 ++++++++++++--
 backend/src/llvm/llvm_gen_ocl_function.hxx         |  4 ++
 backend/src/llvm/llvm_scalarize.cpp                |  2 +
 backend/src/ocl_stdlib.h                           | 50 ++++++++++++++++++++++
 kernels/test_get_image_size.cl                     |  9 ++++
 src/cl_command_queue.c                             | 10 +++++
 utests/CMakeLists.txt                              |  1 +
 utests/compiler_get_image_size.cpp                 | 37 ++++++++++++++++
 22 files changed, 345 insertions(+), 12 deletions(-)
 create mode 100644 kernels/test_get_image_size.cl
 create mode 100644 utests/compiler_get_image_size.cpp

-- 
1.7.11.7



More information about the Beignet mailing list