mesa/src/intel
Iago Toral Quiroga d4bdd871dc anv: avoid crashes when failing to allocate batches
Most of the time we use macros that handle this situation transparently,
but there are some cases were we need to handle this explicitly.

This patch makes sure we don't crash, notice that error handling takes
place in the function that actually failed the allocation,
anv_batch_emit_dwords(), which will set the status field of the batch
so it can be used at a later moment to report the error to the user.

v2:
  - Not crashing is not good enough, we need to keep track of the error
    (Topi, Jason). Iago: now that we track errors in the batch, this
    is being handled.
  - Added guards in a few more places that needed it (Iago)

v3:
  - Check result of anv_batch_emitn() for NULL before calling memset()
    in emit_vertex_input() (Topi)

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2017-03-16 11:40:05 +01:00
..
blorp anv: avoid crashes when failing to allocate batches 2017-03-16 11:40:05 +01:00
common intel/debug: Add a common INTEL_DEBUG=nohiz option 2017-03-14 21:00:09 -07:00
compiler nir: Rework conversion opcodes 2017-03-14 07:36:40 -07:00
genxml intel: genxml: prevent missing ; with address fields dwords 2017-03-13 17:23:49 +00:00
isl i965: Move the back-end compiler to src/intel/compiler 2017-03-13 11:16:34 +00:00
tools aubinator/genxml: use gzipped files to store embedded genxml 2017-03-13 13:36:31 +00:00
vulkan anv: avoid crashes when failing to allocate batches 2017-03-16 11:40:05 +01:00
Android.blorp.mk i965: Move the back-end compiler to src/intel/compiler 2017-03-13 11:16:34 +00:00
Android.common.mk android: intel: fix include paths in new "common" library 2016-09-03 20:03:16 -07:00
Android.compiler.mk android: add src/intel/compiler to libmesa_intel_compiler includes 2017-03-14 07:48:22 +02:00
Android.genxml.mk android: intel: Flatten the makefile structure 2016-08-29 12:17:34 -07:00
Android.isl.mk i965: Move the back-end compiler to src/intel/compiler 2017-03-13 11:16:34 +00:00
Android.mk intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
Android.vulkan.mk android: add '/vulkan' to libmesa_anv_entrypoints path 2017-03-14 07:48:30 +02:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
Makefile.blorp.am blorp: automake: add TODO to the tarball 2017-02-24 17:37:00 +00:00
Makefile.common.am intel: Add a new "common" library for more code sharing 2016-09-03 08:23:06 -07:00
Makefile.compiler.am intel/compiler: link all tests again gtest, even test_eu_compact" 2017-03-13 11:16:35 +00:00
Makefile.genxml.am aubinator/genxml: use gzipped files to store embedded genxml 2017-03-13 13:36:31 +00:00
Makefile.isl.am intel/isl: Stop linking libi965_compiler.la into tests 2017-03-13 11:16:33 +00:00
Makefile.sources anv: Use on-the-fly surface states for dynamic buffer descriptors 2017-03-13 07:58:00 -07:00
Makefile.tools.am aubinator/genxml: use gzipped files to store embedded genxml 2017-03-13 13:36:31 +00:00
Makefile.vulkan.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00