summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-18 17:17:31 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-20 09:14:47 -0700
commit35b758c378900b2c611050e782ca8100fbcc671d (patch)
tree065bd58973e6cdca45aa5150dd149101fd170293 /src/intel/vulkan/anv_pipeline.c
parent3bbe8a09eaf95548313db13b4e56dbdd35d2755e (diff)
downloadexternal_mesa3d-35b758c378900b2c611050e782ca8100fbcc671d.zip
external_mesa3d-35b758c378900b2c611050e782ca8100fbcc671d.tar.gz
external_mesa3d-35b758c378900b2c611050e782ca8100fbcc671d.tar.bz2
anv/lower_push_constants: Stop treating scalar specially
All of the code that did something special based on vec4 vs. scalar is bogus. In the backend, everything is now in units of bytes and the vec4 backend can handle full std140 packing so we don't need to do anything special anymore. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94998
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r--src/intel/vulkan/anv_pipeline.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index a215a37..007c58b 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -313,16 +313,13 @@ anv_pipeline_compile(struct anv_pipeline *pipeline,
struct brw_stage_prog_data *prog_data,
struct anv_pipeline_bind_map *map)
{
- const struct brw_compiler *compiler =
- pipeline->device->instance->physicalDevice.compiler;
-
nir_shader *nir = anv_shader_compile_to_nir(pipeline->device,
module, entrypoint, stage,
spec_info);
if (nir == NULL)
return NULL;
- anv_nir_lower_push_constants(nir, compiler->scalar_stage[stage]);
+ anv_nir_lower_push_constants(nir);
/* Figure out the number of parameters */
prog_data->nr_params = 0;