浏览代码

r600g: store glsl_feature_level in the r600_screen

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
tags/i965-primitive-restart-v2
Vadim Girlin 13 年前
父节点
当前提交
e382a0c142
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    1
      src/gallium/drivers/r600/r600_pipe.c
  2. 1
    0
      src/gallium/drivers/r600/r600_pipe.h

+ 2
- 1
src/gallium/drivers/r600/r600_pipe.c 查看文件

return 1; return 1;


case PIPE_CAP_GLSL_FEATURE_LEVEL: case PIPE_CAP_GLSL_FEATURE_LEVEL:
return debug_get_bool_option("R600_GLSL130", FALSE) ? 130 : 120;
return rscreen->glsl_feature_level;


/* Supported except the original R600. */ /* Supported except the original R600. */
case PIPE_CAP_INDEP_BLEND_ENABLE: case PIPE_CAP_INDEP_BLEND_ENABLE:
pipe_mutex_init(rscreen->fences.mutex); pipe_mutex_init(rscreen->fences.mutex);


rscreen->use_surface_alloc = debug_get_bool_option("R600_SURF", TRUE); rscreen->use_surface_alloc = debug_get_bool_option("R600_SURF", TRUE);
rscreen->glsl_feature_level = debug_get_bool_option("R600_GLSL130", FALSE) ? 130 : 120;


return &rscreen->screen; return &rscreen->screen;
} }

+ 1
- 0
src/gallium/drivers/r600/r600_pipe.h 查看文件



unsigned num_contexts; unsigned num_contexts;
bool use_surface_alloc; bool use_surface_alloc;
int glsl_feature_level;


/* for thread-safe write accessing to num_contexts */ /* for thread-safe write accessing to num_contexts */
pipe_mutex mutex_num_contexts; pipe_mutex mutex_num_contexts;

正在加载...
取消
保存