浏览代码

softpipe: Map GS constants, too.

gallium-resources
Michal Krol 15 年前
父节点
当前提交
7810606f42
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      src/gallium/drivers/softpipe/sp_state_fs.c

+ 2
- 3
src/gallium/drivers/softpipe/sp_state_fs.c 查看文件

@@ -181,9 +181,8 @@ softpipe_set_constant_buffer(struct pipe_context *pipe,
/* note: reference counting */
pipe_resource_reference(&softpipe->constants[shader][index], constants);

if(shader == PIPE_SHADER_VERTEX) {
draw_set_mapped_constant_buffer(softpipe->draw, PIPE_SHADER_VERTEX, index,
data, size);
if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) {
draw_set_mapped_constant_buffer(softpipe->draw, shader, index, data, size);
}

softpipe->mapped_constants[shader][index] = data;

正在加载...
取消
保存