diff options
author | Kenneth Graunke <[email protected]> | 2019-07-03 15:12:17 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-07-03 22:24:44 -0700 |
commit | 10560f8506ebecf8a10ff46b8e02af5bd21db36d (patch) | |
tree | f18a3798074ea2179ef7e0d9cc6f8de68310dac6 /src/gallium/drivers/iris/iris_formats.c | |
parent | 6ab23805c3aa576c8805c9ae1293c00deb02a185 (diff) |
iris: Minor tidying
Diffstat (limited to 'src/gallium/drivers/iris/iris_formats.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_formats.c | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c index 7ae5806d6da..d3c9239793a 100644 --- a/src/gallium/drivers/iris/iris_formats.c +++ b/src/gallium/drivers/iris/iris_formats.c @@ -406,8 +406,8 @@ iris_is_format_supported(struct pipe_screen *pscreen, const struct gen_device_info *devinfo = &screen->devinfo; uint32_t max_samples = devinfo->gen == 8 ? 8 : 16; - // XXX: msaa max - if (sample_count > max_samples || !util_is_power_of_two_or_zero(sample_count)) + if (sample_count > max_samples || + !util_is_power_of_two_or_zero(sample_count)) return false; if (pformat == PIPE_FORMAT_NONE) @@ -470,7 +470,7 @@ iris_is_format_supported(struct pipe_screen *pscreen, */ supported &= sample_count <= 1; - // XXX: allow untyped reads + /* TODO: allow formats that only support untyped reads? */ supported &= isl_format_supports_typed_reads(devinfo, format) && isl_format_supports_typed_writes(devinfo, format); } @@ -500,38 +500,6 @@ iris_is_format_supported(struct pipe_screen *pscreen, format == ISL_FORMAT_R32_UINT; } - if (usage & PIPE_BIND_CONSTANT_BUFFER) { - // XXX: - } - - if (usage & PIPE_BIND_STREAM_OUTPUT) { - // XXX: - } - - if (usage & PIPE_BIND_CURSOR) { - // XXX: - } - - if (usage & PIPE_BIND_CUSTOM) { - // XXX: - } - - if (usage & PIPE_BIND_SHADER_BUFFER) { - // XXX: - } - - if (usage & PIPE_BIND_COMPUTE_RESOURCE) { - // XXX: - } - - if (usage & PIPE_BIND_COMMAND_ARGS_BUFFER) { - // XXX: - } - - if (usage & PIPE_BIND_QUERY_BUFFER) { - // XXX: - } - return supported; } |