GPU: Remove GPU_shader_storage_buffer_objects_support

Blender 4.0 requires OpenGL 4.3 which always support SSBO's.
Platforms that don't support enough SSBO bind points will be marked
as unsupported.

Users who start Blender on those platforms will be informed via a
dialog. This PR also updates the `--debug-gpu-force-workarounds`
to match our minimum requirements. Note that some bugs are still
there that should be solved in other PRs:

* Workbench only renders the object using a unit matrix this is because
  there is a bug in the workaround for shader_draw_parameters
* Navigating with middle mouse button is not working. Unsure what the
  cause is, but might be a missing feature check in the OpenGL backend.

Related to #112224

Pull Request: https://projects.blender.org/blender/blender/pulls/112572
This commit is contained in:
Jeroen Bakker
2023-09-21 12:55:51 +02:00
parent 25031f8a86
commit 6d91d36161
24 changed files with 63 additions and 229 deletions

View File

@@ -206,17 +206,6 @@ static PyObject *pygpu_compute_shader_support_get(PyObject * /*self*/)
return PyBool_FromLong(GPU_compute_shader_support());
}
PyDoc_STRVAR(pygpu_shader_storage_buffer_objects_support_get_doc,
".. function:: shader_storage_buffer_objects_support_get()\n"
"\n"
" Are SSBO's supported.\n"
"\n"
" :return: True when supported, False when not supported.\n"
" :rtype: bool\n");
static PyObject *pygpu_shader_storage_buffer_objects_support_get(PyObject * /*self*/)
{
return PyBool_FromLong(GPU_shader_storage_buffer_objects_support());
}
PyDoc_STRVAR(pygpu_shader_image_load_store_support_get_doc,
".. function:: shader_image_load_store_support_get()\n"
"\n"
@@ -307,10 +296,6 @@ static PyMethodDef pygpu_capabilities__tp_methods[] = {
(PyCFunction)pygpu_compute_shader_support_get,
METH_NOARGS,
pygpu_compute_shader_support_get_doc},
{"shader_storage_buffer_objects_support_get",
(PyCFunction)pygpu_shader_storage_buffer_objects_support_get,
METH_NOARGS,
pygpu_shader_storage_buffer_objects_support_get_doc},
{"shader_image_load_store_support_get",
(PyCFunction)pygpu_shader_image_load_store_support_get,
METH_NOARGS,