vk: Further reduce diff to master
Now that we don't compile GLSL, we can roll back a few more hacks and unexport some things from the backend compiler. Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
This commit is contained in:
@@ -676,8 +676,6 @@ anv_compiler_create(struct anv_device *device)
|
||||
|
||||
compiler->device = device;
|
||||
|
||||
compiler->brw->optionCache.info = NULL;
|
||||
compiler->brw->bufmgr = NULL;
|
||||
compiler->brw->gen = devinfo->gen;
|
||||
compiler->brw->is_g4x = devinfo->is_g4x;
|
||||
compiler->brw->is_baytrail = devinfo->is_baytrail;
|
||||
@@ -709,15 +707,9 @@ anv_compiler_create(struct anv_device *device)
|
||||
ctx = &compiler->brw->ctx;
|
||||
_mesa_init_shader_object_functions(&ctx->Driver);
|
||||
|
||||
_mesa_init_constants(&ctx->Const, API_OPENGL_CORE);
|
||||
|
||||
/* Set dd::NewShader */
|
||||
brwInitFragProgFuncs(&ctx->Driver);
|
||||
|
||||
/* brw_select_clip_planes() needs this for bogus reasons. */
|
||||
ctx->_Shader = &compiler->pipeline;
|
||||
|
||||
compiler->brw->precompile = false;
|
||||
|
||||
return compiler;
|
||||
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user