ソースを参照

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;

読み込み中…
キャンセル
保存